A thread-safe lazy value.
Namespace: Sasa
Assembly: Sasa
Collapse/Expand Syntax
C#
public sealed class Lazy<T> :  IOptional<T>,
IResolvable<T>,
IValue<T>,
IVolatile<T>
Type Parameters
T
The type of the value to be lazily evaluated.
Collapse/Expand Remarks
This implements IOptional<T> since it is temporally optional. In other words, at any given time it may or may not have a value. In general, lazy values computed using side-effecting functions are very difficult to reason about.
Collapse/Expand Members

Click here to see the list of members.