Documentation
    Preparing search index...

    Interface AsyncLazyLike<T>

    Provides ability to lazily evaluate a value asynchronously when it is accessed for the first time.

    interface AsyncLazyLike<T> {
        value: Promise<T>;
        valueCreated: boolean;
        tryGetImmediateValue(): T | undefined;
    }

    Type Parameters

    • T

    Implemented by

    Index

    Properties

    value: Promise<T>

    Gets the lazily evaluated value.

    valueCreated: boolean

    Whether the value has been created.

    Methods