Variable PromiseUtils

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

Type declaration

  • PromiseStatus: {
        Fullfilled: string;
        Rejected: string;
    }
    • Fullfilled: string
    • Rejected: string
  • 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.

Generated using TypeDoc