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

Type declaration

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

        Returns Error

        The error.

  • delay: ((duration: number) => 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.

  • PromiseStatus: typeof PromiseStatus