Udostępnij za pośrednictwem


AsyncExtensions Class

Definition

The asynchronous extensions.

public static class AsyncExtensions
type AsyncExtensions = class
Public Module AsyncExtensions
Inheritance
AsyncExtensions

Methods

WhenAllForAwait(IEnumerable<Task>)

Creates a task that will complete when all of the supplied tasks have completed. Multiple exceptions will be wrapped as single aggregate exception. This extension method is intend to be used with await operator exclusively.

WhenAllForAwait<T>(IEnumerable<Task<T>>)

Creates a task that will complete when all of the supplied tasks have completed. Multiple exceptions will be wrapped as single aggregate exception. This extension method is intend to be used with await operator exclusively.

WrapMultipleExceptionsForAwait(Task)

Wraps the multiple exceptions as single aggregate exception for await operator.

WrapMultipleExceptionsForAwait<T>(Task<T>)

Wraps the multiple exceptions as single aggregate exception for await operator.

Applies to