Holders of an AbortSignal object may query if the associated operation has been aborted and register an onabort handler.

interface AbortSignal {
    aborted: boolean;
    onabort: null | Function | AbortHandler;
}

Properties

Properties

aborted: boolean

Whether the action represented by this signal has been cancelled.

onabort: null | Function | AbortHandler

A function to be invoked when the action represented by this signal has been cancelled.