Table of Contents

Constructor AsyncLazy

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

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)

Parameters

factory Func<Task<T>>

The asynchronous delegate that is invoked on a background thread to produce the value when it is needed.