Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/dom_types.ts>AbortSignal

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface AbortSignal
implements EventTarget
import { type AbortSignal } from "https://deno.land/x/deno@v0.30.0/cli/js/dom_types.ts";

Properties

readonly
aborted: boolean
onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null

Methods

addEventListener<K extends keyof AbortSignalEventMap>(
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
listener: EventListener,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof AbortSignalEventMap>(
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
listener: EventListener,
options?: boolean | EventListenerOptions,
): void