Race a promise with an abort signal. If the signal is aborted, the promise will be rejected with the error from the signal. If the promise is rejected, the signal will be aborted.
raceWithSignal<T>(promise: Promise<T>, signal: AbortSignal): Promise<T>| Name | Type | Description |
|---|---|---|
promise* | Promise<T> | The promise to race. |
signal | AbortSignal | The abort signal. |