throwIfAborted

external fun throwIfAborted()(source)

The throwIfAborted() method throws the signal's abort reason if the signal has been aborted; otherwise it does nothing.

MDN Reference