Skip to main content
Module

std/async/mod.ts>abortablePromise

Deno standard library
Go to Latest
function abortablePromise
import { abortablePromise } from "https://deno.land/std@0.158.0/async/mod.ts";

Make Promise abortable with the given signal.

Parameters

p: Promise<T>
signal: AbortSignal

Returns

Promise<T>