@metreeca/core - v0.9.22
    Preparing search index...

    Function eager

    • Resolves a Lazy reference to its value.

      Calls a no-arg factory to obtain the value it stands for, or returns a plain value unchanged, so a caller handed a Lazy reference can work with the value it denotes. The result is not cached: a factory runs on every call.

      Type Parameters

      • T

        The type of the resolved value

      Parameters

      • value: Lazy<T>

        The value, or the no-arg factory computing it

      Returns T

      The value the reference stands for

      lazy for the converse, deferring a Lazy reference rather than forcing it