| CancelableAsyncInitBaseTCreateAsync 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(
CancellationToken cancellationToken
)
Public Shared Function CreateAsync (
cancellationToken As CancellationToken
) As Task(Of T)
public:
static Task<T>^ CreateAsync(
CancellationToken cancellationToken
)
static member CreateAsync :
cancellationToken : CancellationToken -> Task<'T>
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskTA
Task capturing the initialization.
See Also