AbortSignal.throwIfAborted - Web documentation
method AbortSignal.throwIfAborted

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

Return Type

void