Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function abortableAsyncIterable
import { abortableAsyncIterable } from "https://deno.land/std@0.155.0/async/abortable.ts";

Make AsyncIterable abortable with the given signal.

Parameters

p: AsyncIterable<T>
signal: AbortSignal

Returns

AsyncGenerator<T>