Task<TResult> class

Represents an asynchronous operation that can return a value. Each Task is a thin wrapper over Task and each call simply invokes the wrapped task. During testing, a Task is controlled by the runtime and systematically interleaved with other asynchronous operations to find bugs.

public class Task<TResult> : Task
parameter description
TResult The type of the produced result.

Public Members

name description
Result { get; } Gets the result value of this task.
UncontrolledTask { get; } The uncontrolled Task that is wrapped inside this controlled Task.
ConfigureAwait(…) Configures an awaiter used to await this task.
GetAwaiter() Gets an awaiter for this awaitable.

See Also