AbortController

open external class AbortController(source)

A controller object that allows you to abort one or more DOM requests as and when desired.

MDN Reference

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Returns the AbortSignal object associated with this object.

Functions

Link copied to clipboard
fun abort(reason: JsError? = definedExternally)

Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.