共用方式為


AsyncValueTaskMethodBuilder.AwaitUnsafeOnCompleted<TAwaiter,TStateMachine> 方法

定義

排程狀態機器以在指定的 awaiter 完成時繼續下一個動作。

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

類型參數

TAwaiter

awaiter 的型別。

TStateMachine

狀態機器的類型。

參數

awaiter
TAwaiter

awaiter。

stateMachine
TStateMachine

狀態機器。

適用於