你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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