Dom-abort

DOM Abort API Provides a controller that can signal abortion to one or more associated AbortSignals.

Module: whatwg.dom-abort Support: Experimental Since: 1.1.0 Docs: WHATWG Docs

Interface AbortController

Provides a controller that can signal abortion to one or more associated AbortSignals.

Since: 1.1.0 Docs: WHATWG Docs

3 members: 3 undocumented

Constructors

⚪ constructor()
Provides a controller that can signal abortion to one or more associated AbortSignals.

Methods

⚪ abort(reason)
Aborts all operations watching this controller's signal.

Properties

⚪ signal
The AbortSignal associated with this controller.

---

Interface AbortSignal

Extends: EventTarget

7 members: 7 undocumented

Static Methods

⚪ abort(reason)
Aborts all operations watching this controller's signal.
⚪ timeout(milliseconds)
→ AbortSignal
⚪ anySignal(signals)
→ AbortSignal

Methods

⚪ throwIfAborted()
Not documented

Properties

⚪ aborted
→ boolean
⚪ reason
Aborts all operations watching this controller's signal.
⚪ onabort
Event handler fired when the signal is aborted.

---

Details

throwIfAborted()

throwIfAborted()

throwIfAborted()

Throws:
  • - --- Throws reason if this signal is already aborted.

---