Skip to main content
Go to Latest
function abortablePromise
import { abortablePromise } from "https://deno.land/std@0.146.0/async/abortable.ts";

Make Promise abortable with the given signal.

Parameters

p: Promise<T>
signal: AbortSignal

Returns

Promise<T>