abort-controller
AbortController utilities.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| abortSignalAny | An abort signal that aborts when any of the given abort signals abort. |
| abortSignalNever | An abort signal that never aborts. |
| abortSignalTimeout | An abort signal that aborts after a timeout. |
| onAbort | Adds an abort listener to an abort signal and calls the callback if the abort signal is already aborted. |
| waitForAbort | Waits for an abort signal to abort and resolves with its reason. |
Variables
Section titled “Variables”| Variable | Description |
|---|---|
| INFINITE_TIMEOUT | A constant representing an infinite timeout. |