Struct AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter
- Namespace
- Microsoft.VisualStudio.Threading
- Assembly
- Microsoft.VisualStudio.Threading.dll
A Task awaiter that has affinity to executing callbacks synchronously on the completing callstack.
public readonly struct AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter : INotifyCompletion
- Implements
- Inherited Members
Constructors
ExecuteContinuationSynchronouslyAwaiter(Task)
Initializes a new instance of the AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter struct.
public ExecuteContinuationSynchronouslyAwaiter(Task antecedent)
Parameters
antecedent
TaskThe task whose completion will execute the continuation.
Properties
IsCompleted
Gets a value indicating whether the antedent Task has already completed.
public bool IsCompleted { get; }
Property Value
Methods
GetResult()
Rethrows any exception thrown by the antecedent.
public void GetResult()
OnCompleted(Action)
Schedules a callback to run when the antecedent task completes.
public void OnCompleted(Action continuation)
Parameters
continuation
ActionThe callback to invoke.