@aracna/core - v1.5.0
    Preparing search index...

    Function wfp

    • The wfp function stands for wait for promise. It takes a function that returns a promise and waits for it to resolve to a truthy value or an error.

      Aracna Reference

      Parameters

      • fn: () => Promise<any>
      • ms: number = DEFAULT_WFP_MS
      • timeout: number = DEFAULT_WFP_TIMEOUT

      Returns Promise<void | Error>