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

    Function fromPromiseWithError

    • Creates a new Observer that will notify observers exactly once when the promise is resolved. In the event of an error, the observer will be notified with the error. Note that the promise is only created when the first observer is added so it is lazy.

      Type Parameters

      • T
      • E extends Error

      Parameters

      • promiseFactory: () => Promise<T>

      Returns Observe<T | E>