Interface ReadonlyLazy<T>

interface ReadonlyLazy<T> {
    constructed: boolean;
    get value(): T;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

Accessors

Properties

constructed: boolean

True if the lazy instance has been constructed.

Accessors

  • get value(): T
  • When invoked the first time, constructs the value and returns it. Consecutive calls will return that cached value.

    Returns T

    DisposedError If this lazy factory is disposed.