AwaitUnsafeOnCompleted(TAwaiter, TStateMachine) Method

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.

Namespace:  System.Runtime.CompilerServices
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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft