Package: effect
Module: Channel
Creates a Channel that emits all elements from an iterable.
Example (Creating channels from iterables)
import { Channel } from "effect"
const set = new Set([1, 2, 3])
const channel = Channel.fromIterable(set)
// Emits: 1, 2, 3
Signature
declare const fromIterable: <A, L>(iterable: Iterable<A, L>) => Channel<A, never, L>
Since v4.0.0