Constructor AsyncLazy
AsyncLazy(Func<T>)
Initializes a new instance of the AsyncLazy<T> class.
public AsyncLazy(Func<T> factory)
Parameters
factory
Func<T>The delegate that is invoked on a background thread to produce the value when it is needed.
AsyncLazy(Func<Task<T>>)
Initializes a new instance of the AsyncLazy<T> class.
public AsyncLazy(Func<Task<T>> factory)