Class FastLazy<S, T>
A fast, atomic lazy that only allows a single publish operation to happen, but allows executions to occur concurrently.
Does not cache exceptions. Designed for use with T
types that are IDisposable
or are otherwise considered to be expensive to allocate.
Read the full explanation here: https://github.com/Aaronontheweb/FastAtomicLazy#rationale
Inherited Members
Namespace: Akka.Util
Assembly: Akka.dll
Syntax
public sealed class FastLazy<S, T>
Type Parameters
Name | Description |
---|---|
S | State type |
T | Value type |
Constructors
| Improve this Doc View SourceFastLazy(Func<S, T>, S)
Initializes a new instance of the FastLazy<T> class.
Declaration
public FastLazy(Func<S, T> producer, S state)
Parameters
Type | Name | Description |
---|---|---|
Func<S, T> | producer | |
S | state |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | This exception is thrown if the given |
Properties
| Improve this Doc View SourceIsValueCreated
TBD
Declaration
public bool IsValueCreated { get; }
Property Value
Type | Description |
---|---|
Boolean | TBD |
Value
TBD
Declaration
public T Value { get; }
Property Value
Type | Description |
---|---|
T |