Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/web/lib.deno_web.d.ts>AbortController

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface AbortController
import { type AbortController } from "https://deno.land/x/deno@v1.38.1/ext/web/lib.deno_web.d.ts";

A controller object that allows you to abort one or more DOM requests as and when desired.

Properties

readonly
signal: AbortSignal

Returns the AbortSignal object associated with this object.

Methods

abort(reason?: any): void

Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.

variable AbortController
import { AbortController } from "https://deno.land/x/deno@v1.38.1/ext/web/lib.deno_web.d.ts";

A controller object that allows you to abort one or more DOM requests as and when desired.

type

{ readonly prototype: AbortController; new (): AbortController; }