function abortablePromiseimport { abortablePromise } from "https://dotland.deno.dev/std@0.181.0/async/abortable.ts"; abortablePromise<T>(p: Promise<T>, signal: AbortSignal): Promise<T>Make Promise abortable with the given signal. ExamplesExample 1 import { abortablePromise } from "https://deno.land/std@0.181.0/async/mod.ts"; const request = fetch("https://example.com"); const c = new AbortController(); setTimeout(() => c.abort(), 100); const p = abortablePromise(request, c.signal); // The below throws if the request didn't resolve in 100ms await p; Type ParametersTParametersp: Promise<T>signal: AbortSignalReturnsPromise<T>