AsyncExtensions.WrapMultipleExceptionsForAwait Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
WrapMultipleExceptionsForAwait(Task)
Wraps the multiple exceptions as single aggregate exception for await operator.
public static System.Threading.Tasks.Task WrapMultipleExceptionsForAwait (this System.Threading.Tasks.Task task);
static member WrapMultipleExceptionsForAwait : System.Threading.Tasks.Task -> System.Threading.Tasks.Task
<Extension()>
Public Function WrapMultipleExceptionsForAwait (task As Task) As Task
Parameters
- task
- Task
The asynchronous task.
Returns
Applies to
WrapMultipleExceptionsForAwait<T>(Task<T>)
Wraps the multiple exceptions as single aggregate exception for await operator.
public static System.Threading.Tasks.Task<T> WrapMultipleExceptionsForAwait<T> (this System.Threading.Tasks.Task<T> task);
static member WrapMultipleExceptionsForAwait : System.Threading.Tasks.Task<'T> -> System.Threading.Tasks.Task<'T>
<Extension()>
Public Function WrapMultipleExceptionsForAwait(Of T) (task As Task(Of T)) As Task(Of T)
Type Parameters
- T
The type of the result produced by task.
Parameters
- task
- Task<T>
The asynchronous task.