AbortSignal

external interface AbortSignal : EventTarget

Properties

Link copied to clipboard
abstract var aborted: Boolean
Link copied to clipboard
open var onabort: (AbortSignal, ev: Event) -> Any?

Functions

Link copied to clipboard
abstract fun <K : Any> addEventListener(type: K, listener: (AbortSignal, ev: Any) -> Any)
abstract override fun addEventListener(type: String, listener: EventListener)
abstract override fun addEventListener(type: String, listener: EventListenerObject)
abstract fun <K : Any> addEventListener(type: K, listener: (AbortSignal, ev: Any) -> Any, options: AddEventListenerOptions? = definedExternally)
abstract fun <K : Any> addEventListener(type: K, listener: (AbortSignal, ev: Any) -> Any, options: Boolean? = definedExternally)
abstract override fun addEventListener(type: String, listener: EventListener, options: AddEventListenerOptions?)
abstract override fun addEventListener(type: String, listener: EventListener, options: Boolean?)
abstract override fun addEventListener(type: String, listener: EventListenerObject, options: AddEventListenerOptions?)
abstract override fun addEventListener(type: String, listener: EventListenerObject, options: Boolean?)
Link copied to clipboard
abstract fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
abstract fun <K : Any> removeEventListener(type: K, listener: (AbortSignal, ev: Any) -> Any)
abstract override fun removeEventListener(type: String, callback: EventListener)
abstract override fun removeEventListener(type: String, callback: EventListenerObject)
abstract fun <K : Any> removeEventListener(type: K, listener: (AbortSignal, ev: Any) -> Any, options: EventListenerOptions? = definedExternally)
abstract fun <K : Any> removeEventListener(type: K, listener: (AbortSignal, ev: Any) -> Any, options: Boolean? = definedExternally)
abstract override fun removeEventListener(type: String, callback: EventListener, options: EventListenerOptions?)
abstract override fun removeEventListener(type: String, callback: EventListener, options: Boolean?)
abstract override fun removeEventListener(type: String, callback: EventListenerObject, options: EventListenerOptions?)
abstract override fun removeEventListener(type: String, callback: EventListenerObject, options: Boolean?)