AsyncTaskMethodBuilder(Of TResult).AwaitUnsafeOnCompleted(Of TAwaiter, TStateMachine) Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Schedules the state machine to proceed to the next action when the specified awaiter completes. This method can be called from partially trusted code.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Sub AwaitUnsafeOnCompleted(Of TAwaiter As ICriticalNotifyCompletion, TStateMachine As IAsyncStateMachine) ( _ ByRef awaiter As TAwaiter, _ ByRef stateMachine As TStateMachine _ )
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.
Show: