AsyncTaskMethodBuilderTResultAwaitUnsafeOnCompletedTAwaiter, TStateMachine Method |
This API is preliminary and subject to change.
Schedules the specified state machine to be pushed forward when the specified awaiter completes.
Namespace: System.Runtime.CompilerServicesAssembly: Rackspace.Threading (in Rackspace.Threading.dll) Version: 2.1.0-beta1
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
)
member AwaitUnsafeOnCompleted :
awaiter : 'TAwaiter byref *
stateMachine : 'TStateMachine byref -> unit when 'TAwaiter : ICriticalNotifyCompletion when 'TStateMachine : IAsyncStateMachine
Parameters
- awaiter
- Type: TAwaiter
The awaiter. - stateMachine
- Type: TStateMachine
The state machine.
Type Parameters
- TAwaiter
- Specifies the type of the awaiter.
- TStateMachine
- Specifies the type of the state machine.
Version Information
.NET Framework
Supported in: 3.5
Threading Library
Supported in: 2.1
See Also