PromiseUtils: {
    PromiseStatus: typeof PromiseStatus;
    abortError: (() => Error);
    delay: ((duration) => Promise<void>);
}

Type declaration

  • PromiseStatus: typeof PromiseStatus
  • abortError: (() => Error)
      • (): Error
      • Returns an Error with the 'aborted' reason.

        Returns Error

        The error.

  • delay: ((duration) => Promise<void>)
      • (duration): Promise<void>
      • Returns a promise that will resolve after the specified duration.

        Parameters

        • duration: number

          The duration, in milliseconds.

        Returns Promise<void>

        The promise.