Nito.AsyncEx.TaskExtensions
DANGEROUS! Ignores the completion of this task. Also ignores exceptions.
DANGEROUS! Ignores the completion and results of this task. Also ignores exceptions.
Creates a new collection of tasks that complete in order.
Creates a new collection of tasks that complete in order.
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.