| CancelableAsyncInitBaseT, TArgCreateAsync Method |
Asynchronously creates and initializes an instance.
Namespace:
Ditto.AsyncInit
Assembly:
Ditto.AsyncInit (in Ditto.AsyncInit.dll) Version: 1.5.0.2281
Syntax public static Task<T> CreateAsync(
TArg arg,
CancellationToken cancellationToken
)
Public Shared Function CreateAsync (
arg As TArg,
cancellationToken As CancellationToken
) As Task(Of T)
public:
static Task<T>^ CreateAsync(
TArg arg,
CancellationToken cancellationToken
)
static member CreateAsync :
arg : 'TArg *
cancellationToken : CancellationToken -> Task<'T>
Parameters
- arg
- Type: TArg
The initialization argument. - cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskTA
Task capturing the initialization.
See Also