| IAsyncInitializerTAsTask Method (CancellationToken) |
Gets a cancelable task capturing the initialization.
Namespace:
Ditto.AsyncInit.Services
Assembly:
Ditto.AsyncInit.Services (in Ditto.AsyncInit.Services.dll) Version: 1.5.0.2468
Syntax Task<T> AsTask(
CancellationToken cancellationToken
)
Function AsTask (
cancellationToken As CancellationToken
) As Task(Of T)
Task<T>^ AsTask(
CancellationToken cancellationToken
)
abstract AsTask :
cancellationToken : CancellationToken -> Task<'T>
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskTCancelable task capturing the initialization.
See Also