abort

The abort JS AbortSignal returns an AbortSignal instance whose abort reason is set to reason if not undefined; otherwise to an "AbortError" DOMException.

Syntax

AbortSignal.abort(reason)

Parameters

reason

The reason for the abort.

Examples

1 · void

2 · reason

aborted

reason

throwIfAborted

timeout

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu