AsyncIteratorMethodBuilder.MoveNext<TStateMachine> Method

Definition

Invokes MoveNext() on the state machine while guarding the ExecutionContext.

public void MoveNext<TStateMachine> (ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine;

Type Parameters

TStateMachine

The type of the state machine.

Parameters

stateMachine
TStateMachine

The state machine instance, passed by reference.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.0 (package-provided), 2.1