https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/throwIfAborted
AbortSignal: throwIfAborted() method - Web APIs | MDN
The throwIfAborted() method throws the signal's abort reason if the signal has been aborted; otherwise it does nothing.
web apisabortsignalmethodmdn