Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/effection/lib/mod.ts>stream

Structured concurrency and effects for JavaScript
Latest
function stream
import { stream } from "https://deno.land/x/effection@4.0.0-alpha.1/lib/mod.ts";

Convert any AsyncIterable into an Effection Stream.

This allows you to consume any AsyncIterable as a Stream.

Parameters

iterable: AsyncIterable<T, R>
  • the async iterable to convert

Returns

a stream that will produce each item of iterable