| CancelableAsyncInitBaseT, TArgInitAsync Method (TArg, CancellationToken) |
Asynchronously initializes an instance. Overridden by the deriving type.
Namespace:
Ditto.AsyncInit
Assembly:
Ditto.AsyncInit (in Ditto.AsyncInit.dll) Version: 1.5.0.2281
Syntax protected abstract Task InitAsync(
TArg arg,
CancellationToken cancellationToken
)
Protected MustOverride Function InitAsync (
arg As TArg,
cancellationToken As CancellationToken
) As Task
protected:
virtual Task^ InitAsync(
TArg arg,
CancellationToken cancellationToken
) abstract
abstract InitAsync :
arg : 'TArg *
cancellationToken : CancellationToken -> Task
Parameters
- arg
- Type: TArg
The initialization argument. - cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskA
Task capturing the initialization.
See Also