AbortSignal

The object from an AbortController that tells work it has been cancelled, through its aborted flag, its reason and an abort event.

In more detail

Pass it as the signal option to fetch or addEventListener and they clean up automatically when it fires. Your own code can check signal.aborted or call throwIfAborted().

Related terms

Taught in

References