@adobe/data - v0.10.30
    Preparing search index...

    Function toPromise

    • Converts an Observe function to a Promise that will resolve with the first value. Note that you will never receive subsequent updates since promises can only resolve once.

      Type Parameters

      • T

      Parameters

      • observable: Observe<T>

        source observable

      Returns Promise<T>

      the first value yielded by the observe function.