AbortController

The AbortController interface represents a controller object that allows you to abort one or more Web requests as and when desired.

MDN Reference

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The signal read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.

Functions

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

The abort() method of the AbortController interface aborts an asynchronous operation before it has completed.