Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/promise/index.ts>AbortWithOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface AbortWithOptions
import { type AbortWithOptions } from "https://deno.land/x/ayonli_jsext@v0.9.72/promise/index.ts";

Options for abortWith.

NOTE: Must provide a parent signal or a timeout value, or both.

Properties

optional
parent: AbortSignal

The parent signal to be linked with the new abort signal. If the parent signal is aborted, the new signal will be aborted with the same reason.

optional
timeout: number

If provided, the abort signal will be automatically aborted after the given duration (in milliseconds) if it is not already aborted.