Protected
Readonly
_resolveOptional
error?: unknownOptional
factory?: Func<T>Optional
value?: TWill return true if allowReset is true and a value factory still exists.
The error value if previous faulted.
True if the resolution faulted.
Returns true if the value has been created.
Returns the resolved value.
Gets the value regardless if resolved or not. Does not trigger the value factory.
Protected
_onProtected
getStatic
createCreates a Lazy
Generated using TypeDoc
The ResolverBase class handles resolving a factory method and detects recursion. Since JS does not have a synchronization mechanism (lock or otherwise) we have to prevent getValue from double triggering the value factory (optimistic concurrency) or returning return a value that is intermediate between resolving and resolved.