Nito.AsyncEx.TaskExtensions
Asynchronously waits for the task to complete, or for the cancellation token to be canceled.
public static Task<TResult> WaitAsync<TResult>(this Task<TResult> this, CancellationToken cancellationToken)
Asynchronously waits for the task to complete, or for the cancellation token to be canceled.
Asynchronously waits for all of the source tasks to complete.
Asynchronously waits for all of the source tasks to complete.
Asynchronously waits for any of the source tasks to complete, or for the cancellation token to be canceled.
Asynchronously waits for any of the source tasks to complete.
public static Task<Task<TResult>> WhenAny<TResult>(this IEnumerable<Task<TResult>> this, CancellationToken cancellationToken)
Asynchronously waits for any of the source tasks to complete, or for the cancellation token to be canceled.
Asynchronously waits for any of the source tasks to complete.