AsyncValueTaskMethodBuilder
Represents a builder for asynchronous methods that return a ValueTask.
Gets the task for this builder.
Creates an instance of the AsyncValueTaskMethodBuilder struct.
public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine
Schedules the state machine to proceed to the next action when the specified awaiter completes.
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
Schedules the state machine to proceed to the next action when the specified awaiter completes.
Marks the task as failed and binds the specified exception to the task.
Marks the task as successfully completed.
Associates the builder with the specified state machine.
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
Begins running the builder with the associated state machine.