Effection Logo

function stream

thefrontside/effection

function stream<T, R>(iterable: AsyncIterable<T, R>): Stream<T, R>

Convert any AsyncIterable into an Effection https://effection-www-s5a0jkwj0z5x.deno.dev/api/v3/Stream.

This allows you to consume any AsyncIterable as a https://effection-www-s5a0jkwj0z5x.deno.dev/api/v3/Stream.

Type Parameters

T

R

Parameters

iterable: AsyncIterable<T, R>

  • the async iterable to convert

Return Type

https://effection-www-s5a0jkwj0z5x.deno.dev/api/v3/Stream&lt;T, R>

a stream that will produce each item of iterable