System.Threading.Tasks.Task<TResult>
Represents an asynchronous operation that produces a result at some time in the future.
Provides access to factory methods for creating Task<T> instances.
Gets the result value of this Task<T>.
Initializes a new Task<T> with the specified function.
Initializes a new Task<T> with the specified function.
Initializes a new Task<T> with the specified function and creation options.
public Task(Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
Initializes a new Task<T> with the specified function and creation options.
Initializes a new Task<T> with the specified function and state.
Initializes a new Task<T> with the specified action, state, and options.
Initializes a new Task<T> with the specified action, state, and options.
public Task(Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
Initializes a new Task<T> with the specified action, state, and options.
Creates a continuation that executes when the target Task<T> completes.
public Task ContinueWith(Action<Task<TResult>> continuationAction, CancellationToken cancellationToken)
Creates a continuation that executes when the target Task<T> completes.
Creates a continuation that executes when the target Task<T> completes.
public Task ContinueWith(Action<Task<TResult>> continuationAction, TaskContinuationOptions continuationOptions)
Creates a continuation that executes when the target Task<T> completes.
public Task ContinueWith(Action<Task<TResult>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
Creates a continuation that executes when the target Task<T> completes.
public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction)
Creates a continuation that executes when the target Task<T> completes.
public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken)
Creates a continuation that executes when the target Task<T> completes.
public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskScheduler scheduler)
Creates a continuation that executes when the target Task<T> completes.
public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions)
Creates a continuation that executes when the target Task<T> completes.
public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
Creates a continuation that executes when the target Task<T> completes.