AsyncTaskMethodBuilder..::..AwaitUnsafeOnCompleted<(Of <(<'TAwaiter, TStateMachine>)>)> Method
Schedules the state machine to proceed to the next action when the specified awaiter completes. This method can be called from partially trusted code.
Namespace:
System.Runtime.CompilerServicesAssembly: Bridge (in Bridge.dll)
Syntax
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>( ref TAwaiter awaiter, ref TStateMachine stateMachine ) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
Public Sub AwaitUnsafeOnCompleted(Of TAwaiter As ICriticalNotifyCompletion, TStateMachine As IAsyncStateMachine) ( _ ByRef awaiter As TAwaiter, _ ByRef stateMachine As TStateMachine _ )
public: generic<typename TAwaiter, typename TStateMachine> where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine void AwaitUnsafeOnCompleted( TAwaiter% awaiter, TStateMachine% stateMachine )
Type Parameters
- TAwaiter
- The type of the awaiter.
- TStateMachine
- The type of the state machine.
Parameters
- awaiter
- Type: TAwaiter%
The awaiter.
- stateMachine
- Type: TStateMachine%
The state machine.