| AsyncInitializerTFrom, TToAsTask 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 public virtual Task<TFrom> AsTask(
CancellationToken cancellationToken
)
Public Overridable Function AsTask (
cancellationToken As CancellationToken
) As Task(Of TFrom)
public:
virtual Task<TFrom>^ AsTask(
CancellationToken cancellationToken
)
abstract AsTask :
cancellationToken : CancellationToken -> Task<'TFrom>
override AsTask :
cancellationToken : CancellationToken -> Task<'TFrom>
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskTFromCancelable task capturing the initialization.
Implements
IAsyncInitializerTAsTask(CancellationToken)See Also