Skip to main content
Module

x/proc/deps.ts>abortable

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function abortable
import { abortable } from "https://deno.land/x/proc@0.19.6/deps.ts";

Make Promise or AsyncIterable abortable with the given signal.

Parameters

p: Promise<T>
signal: AbortSignal

Returns

Promise<T>

Parameters

p: AsyncIterable<T>
signal: AbortSignal

Returns

AsyncGenerator<T>