System.Runtime.CompilerServices.AsyncVoidMethodBuilder
Provides a builder for asynchronous methods that return void.
This type is intended for compiler use only.
Initializes a new AsyncVoidMethodBuilder.
public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
Faults the method builder with an exception.
Completes the method builder successfully.
Associates the builder with the state machine it represents.
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
Initiates the builder's execution with the associated state machine.