AbortController

Abort Controller

Manages abort control through a tandem AbortSignal; typically used to control abortion of pending or in-flight async operations.

From MDN:

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

You can create a new AbortController object using the AbortController() constructor. Communicating with an asynchronous operation is done using an AbortSignal object.

AbortController on MDN

See also

AbortSignal tandem event type

Inheritors

Types

Link copied to clipboard
interface Factory : ProxyInstantiable

Models the structure expected/provided for constructors and static factories of an AbortController.

Properties

Link copied to clipboard
abstract val signal: AbortSignal

Abort Signal

Functions

Link copied to clipboard
abstract fun abort(reason: Any? = null)

Abort