AbortController
import { abortAfter, abortPromise, createAbortController } from '@rtorcato/js-common/abortController'
Exports
| Name | Summary |
|---|---|
abortAfter | Aborts the given controller after a timeout (ms). |
abortPromise | Returns a promise that rejects when the given AbortSignal is aborted. |
createAbortController | Creates a new AbortController and returns its controller and signal. |
withAbort | Wraps a promise and rejects it if the signal is aborted. |