• Creates a new Lazy instance.

    Type Parameters

    • T

    Parameters

    • factory: (() => T)

      A factory function that will be invoked at most once. If the instance produced is disposable, it will be disposed on clear.

        • (): T
        • Returns T

    Returns Lazy<T>