throwIfAborted

The throwIfAborted JS AbortSignal throws signal’s abort reason, if signal’s AbortController has signaled to abort; otherwise, does nothing.

Syntax

signal.throwIfAborted()

Examples

1 · AbortController

2 · AbortSignal

abort

aborted

reason

timeout

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu