Table of Contents

Class AsyncLazy<T>

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

Provides support for asynchronous lazy initialization. This type is fully threadsafe.

public sealed class AsyncLazy<T>

Type Parameters

T

The type of object that is being asynchronously initialized.

Inheritance
AsyncLazy<T>

Constructors

AsyncLazy(Func<Task<T>>)

Initializes a new instance of the AsyncLazy<T> class.

AsyncLazy(Func<T>)

Initializes a new instance of the AsyncLazy<T> class.

Methods

GetAwaiter()

Asynchronous infrastructure support. This method permits instances of AsyncLazy<T> to be await'ed.

Start()

Starts the asynchronous initialization, if it has not already started.