AsyncTaskMethodBuilderTResultAwaitOnCompletedTAwaiter, 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 AwaitOnCompleted<TAwaiter, TStateMachine>(
ref TAwaiter awaiter,
ref TStateMachine stateMachine
)
where TAwaiter : INotifyCompletion
where TStateMachine : IAsyncStateMachine
Public Sub AwaitOnCompleted(Of TAwaiter As INotifyCompletion, TStateMachine As IAsyncStateMachine) (
ByRef awaiter As TAwaiter,
ByRef stateMachine As TStateMachine
)
public:
generic<typename TAwaiter, typename TStateMachine>
where TAwaiter : INotifyCompletion
where TStateMachine : IAsyncStateMachine
void AwaitOnCompleted(
TAwaiter% awaiter,
TStateMachine% stateMachine
)
member AwaitOnCompleted :
awaiter : 'TAwaiter byref *
stateMachine : 'TStateMachine byref -> unit when 'TAwaiter : INotifyCompletion 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