| AsyncActivatorCreateAsyncT Method |
Asynchronously creates and initializes an instance of the specified type.
Namespace:
Ditto.AsyncInit
Assembly:
Ditto.AsyncInit (in Ditto.AsyncInit.dll) Version: 1.5.0.2281
Syntax public static Task<T> CreateAsync<T>()
where T : IAsyncInit
Public Shared Function CreateAsync(Of T As IAsyncInit) As Task(Of T)
public:
generic<typename T>
where T : IAsyncInit
static Task<T>^ CreateAsync()
static member CreateAsync : unit -> Task<'T> when 'T : IAsyncInit
Type Parameters
- T
- The type of object to create (must implement IAsyncInit).
Return Value
Type:
TaskTA
Task capturing the initialization.
See Also