AbortSignal
Abort Signal
Implements AbortSignal
and AbortSignal.Factory
for use in JavaScript.
Properties
Functions
Link copied to clipboard
Adds a new handler for the type event. Any given listener is added only once per type and per capture
option value.
open override fun addEventListener(type: String, options: AddEventListenerOptions, listener: EventListener)
Link copied to clipboard
Mark this abort-able object as aborted.
Link copied to clipboard
Dispatches the event to the list of handlers for Event.type.
Link copied to clipboard
Link copied to clipboard
open override fun removeEventListener(type: String, listener: EventListener, options: RemoveEventListenerOptions)
Removes the listener
from the list of handlers for event type
.
Link copied to clipboard
Link copied to clipboard
Throws the AbortSignal's reason for aborting, if aborted; from MDN: