interface dom.AbortSignal
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.17/mod.ts";
const { AbortSignal } = dom;
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
Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
onabort: ((this: AbortSignal, ev: Event) => any) | null
Methods
addEventListener<K extends keyof AbortSignalEventMap>(): void
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof AbortSignalEventMap>(): void
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | EventListenerOptions,