interface AbortSignal
extends EventTarget
A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
Properties Jump to heading
readonly
Jump to headingaborted: booleanReturns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
readonly
Jump to headingreason: anyJump to headingonabort: ((this: AbortSignal,ev: Event,) => any) | nullMethods Jump to heading
Jump to headingaddEventListener<K extends keyof AbortSignalEventMap>(type: K,listener: (this: AbortSignal,ev: AbortSignalEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): voidJump to headingaddEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): voidJump to headingremoveEventListener<K extends keyof AbortSignalEventMap>(type: K,listener: (this: AbortSignal,ev: AbortSignalEventMap[K],) => any,options?: boolean | EventListenerOptions,): voidJump to headingthrowIfAborted(): voidThrows this AbortSignal's abort reason, if its AbortController has signaled to abort; otherwise, does nothing.