<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.6" />

AsyncIteratorMethodBuilder

Represents a builder for asynchronous iterators.

Creates an instance of the AsyncIteratorMethodBuilder 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.

public void Complete()

Marks iteration as being completed, whether successfully or otherwise.

public void MoveNext<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine

Invokes MoveNext on the state machine while guarding the ExecutionContext.