Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.147.0/async/abortable.ts";

Make Promise abortable with the given signal.

Parameters

p: Promise<T>
signal: AbortSignal

Returns

Promise<T>