the Promise or PromiseLike to wait for.
Optionalsignal: AbortSignala signal used to cancel the wait.
a Promise that represents the asynchronous wait.
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.
the Promise or PromiseLike to wait for.
Optionaltimeout: numberthe timeout after which the returned Promise should be rejected, if the provided promise has not settled.
specify undefined for infinite timeout.
Optionalsignal: AbortSignala signal used to cancel the wait.
a Promise that represents the asynchronous wait.
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 or when the specified AbortSignal has been aborted.