AbortSignal.throwIfAborted - Web documentation
method AbortSignal.throwIfAborted
AbortSignal.throwIfAborted(): void

Throws this AbortSignal's abort reason, if its AbortController has signaled to abort; otherwise, does nothing.

Return Type

void