AsyncLazy<T> Class

 

A thread-safe, lazily and asynchronously evaluated value factory.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

System.Object
  Microsoft.VisualStudio.Threading.AsyncLazy<T>

public class AsyncLazy<T>

Type Parameters

T

The type of the value.

NameDescription
System_CAPS_pubmethodAsyncLazy<T>(Func<Task<T>>, JoinableTaskFactory)

Initializes a new instance of AsyncLazy.

NameDescription
System_CAPS_pubpropertyIsValueCreated

Determines whether the value factory has been invoked.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValueAsync()

Gets the task that produces or has produced the value.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string describing an uncreated value, or the string representation of the created value.(Overrides Object.ToString().)

This type is thread-safe for all members.

Return to top
Show: