AsyncLazy Constructor
Overloads
AsyncLazy(Func<Task<T>>) |
Initializes a new instance of the AsyncLazy<T> class. |
AsyncLazy(Func<Task<T>>)
Initializes a new instance of the AsyncLazy<T> class.
Declaration
public AsyncLazy(Func<Task<T>> factory)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Threading.Tasks.Task<T>> | factory |
The asynchronous delegate that is invoked on a background thread to produce the value when it is needed. |
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!