AsyncValueTaskMethodBuilder.AwaitOnCompleted(TAwaiter, TStateMachine) AsyncValueTaskMethodBuilder.AwaitOnCompleted(TAwaiter, TStateMachine) AsyncValueTaskMethodBuilder.AwaitOnCompleted(TAwaiter, TStateMachine) AsyncValueTaskMethodBuilder.AwaitOnCompleted(TAwaiter, TStateMachine) Method

Définition

Planifie la machine à états pour qu’elle passe à l’action suivante quand l’élément awaiter spécifié se termine.Schedules the state machine to proceed to the next action when the specified awaiter completes.

public:
generic <typename TAwaiter, typename TStateMachine>
 where TAwaiter : System::Runtime::CompilerServices::INotifyCompletion where TStateMachine : System::Runtime::CompilerServices::IAsyncStateMachine void AwaitOnCompleted(TAwaiter % awaiter, TStateMachine % stateMachine);
public void AwaitOnCompleted<TAwaiter,TStateMachine> (ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.INotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine;
member this.AwaitOnCompleted :  *  -> unit (requires 'Awaiter :> System.Runtime.CompilerServices.INotifyCompletion and 'StateMachine :> System.Runtime.CompilerServices.IAsyncStateMachine)
Public Sub AwaitOnCompleted(Of TAwaiter As INotifyCompletion, TStateMachine As INotifyCompletion) (ByRef awaiter As TAwaiter, ByRef stateMachine As TStateMachine)

Paramètres de type

TAwaiter

Type d'awaiter.The type of the awaiter.

TStateMachine

Type de la machine à états.The type of the state machine.

Paramètres

awaiter

Élément awaiter.The awaiter.

stateMachine

Machine d’état.The state machine.

S’applique à