Go to Latest
function abortableAsyncIterable
import { abortableAsyncIterable } from "https://dotland.deno.dev/std@0.131.0/async/mod.ts";

Make AsyncIterable abortable with the given signal.

Parameters

p: AsyncIterable<T>
signal: AbortSignal

Returns

AsyncGenerator<T>