Documentation
    Preparing search index...
    • Gets a Promise that resolves when the specified PromiseLike is fulfilled or when the specified AbortSignal has been aborted.

      Type Parameters

      • T

      Parameters

      • promise: PromiseLike<T>

        the Promise or PromiseLike to wait for.

      • Optionalsignal: AbortSignal

        a signal used to cancel the wait.

      Returns Promise<T>

      a Promise that represents the asynchronous wait.

      any the provided promise has been rejected.

      the specified signal has been aborted. If the signal has been aborted with explicit reason, the AbortSignal.reason will be thrown.

    • Gets a Promise that resolves when the specified PromiseLike is fulfilled, when the specified timeout has reached, or when the specified AbortSignal has been aborted.

      Type Parameters

      • T

      Parameters

      • promise: PromiseLike<T>

        the Promise or PromiseLike to wait for.

      • Optionaltimeout: number

        the timeout after which the returned Promise should be rejected, if the provided promise has not settled. specify undefined for infinite timeout.

      • Optionalsignal: AbortSignal

        a signal used to cancel the wait.

      Returns Promise<undefined | T>

      a Promise that represents the asynchronous wait.

      any the provided promise has been rejected.

      the specified timeout has been reached.

      the specified signal has been aborted. If the signal has been aborted with explicit reason, the AbortSignal.reason will be thrown.