Struct AwaitExtensions.AggregateExceptionAwaiter
- Namespace
- Microsoft.VisualStudio.Threading
- Assembly
- Microsoft.VisualStudio.Threading.dll
The result of GetAwaiter() to prepare a Task to be awaited while throwing with all inner exceptions.
public readonly struct AwaitExtensions.AggregateExceptionAwaiter : ICriticalNotifyCompletion, INotifyCompletion
- Implements
- Inherited Members
Constructors
AggregateExceptionAwaiter(Task, bool)
Initializes a new instance of the AwaitExtensions.AggregateExceptionAwaiter struct.
public AggregateExceptionAwaiter(Task task, bool continueOnCapturedContext)
Parameters
Properties
IsCompleted
public bool IsCompleted { get; }
Property Value
Methods
GetResult()
public void GetResult()
Exceptions
- OperationCanceledException
Thrown if the task was canceled.
- AggregateException
Thrown if the task faulted.
OnCompleted(Action)
public void OnCompleted(Action continuation)
Parameters
continuation
Action
UnsafeOnCompleted(Action)
public void UnsafeOnCompleted(Action continuation)
Parameters
continuation
Action