Package: effect
Module: Channel
Creates a Channel that emits arrays of elements from an iterable.
Example (Batching iterable output)
import { Channel } from "effect"
const numbers = [1, 2, 3, 4, 5]
const channel = Channel.fromIterableArray(numbers)
// Emits arrays like: [1, 2, 3, 4], [5] (based on chunk size)
Signature
declare const fromIterableArray: <A, L>(iterable: Iterable<A, L>, chunkSize?: number) => Channel<Arr.NonEmptyReadonlyArray<A>, never, L>
Since v4.0.0