LazyAsyncT(FuncT, Boolean) Constructor

Initializes a new instance of the LazyAsyncT class.

Definition

Namespace: DevCase.Runtime.Threading
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public LazyAsync(
	Func<T> valueFactory,
	bool isThreadSafe
)

Parameters

valueFactory  FuncT
The delegate that is invoked to produce the lazily initialized value when it is needed.
isThreadSafe  Boolean
A value that indicates whether only one thread at time can access to this LazyAsyncT.

See Also