Skip to content

TaskObservableMethodBuilder.AwaitUnsafeOnCompleted(TAwaiter, TStateMachine) method

Defined in

Type: TaskObservableMethodBuilder Namespace: System.Runtime.CompilerServices Assembly: System.Reactive.dll

Applies to

netstandard2.0

Attributes: [SecuritySafeCritical]

public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine

Summary: Schedules the state machine to proceed to the next action when the specified awaiter completes.

Type parameters

NameDescription
TAwaiterThe type of the awaiter.
TStateMachineThe type of the state machine.

Parameters

NameTypeDescription
ref awaiterTAwaiterThe awaiter.
ref stateMachineTStateMachineThe state machine.