LazyAsyncT(FuncT, Boolean) Constructor
Initializes a new instance of the
LazyAsyncT class.
Namespace: DevCase.Runtime.ThreadingAssembly: 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
)
Public Sub New (
valueFactory As Func(Of T),
isThreadSafe As Boolean
)
Dim valueFactory As Func(Of T)
Dim isThreadSafe As Boolean
Dim instance As New LazyAsync(valueFactory,
isThreadSafe)
public:
LazyAsync(
Func<T>^ valueFactory,
bool isThreadSafe
)
new :
valueFactory : Func<'T> *
isThreadSafe : bool -> LazyAsync
No code example is currently available or this language may not be supported.
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.