Skip to content

abort-controller

AbortController utilities.

FunctionDescription
abortSignalAnyAn abort signal that aborts when any of the given abort signals abort.
abortSignalNeverAn abort signal that never aborts.
abortSignalTimeoutAn abort signal that aborts after a timeout.
onAbortAdds an abort listener to an abort signal and calls the callback if the abort signal is already aborted.
waitForAbortWaits for an abort signal to abort and resolves with its reason.
VariableDescription
INFINITE_TIMEOUTA constant representing an infinite timeout.