Skip to main content
Module

std/async/mod.ts>abortablePromise

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function abortablePromise
import { abortablePromise } from "https://deno.land/std@0.136.0/async/mod.ts";

Make Promise abortable with the given signal.

Parameters

p: Promise<T>
signal: AbortSignal

Returns

Promise<T>