MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromIteratorSucceed

Function fromIteratorSucceed

packages/effect/src/Stream.ts:918–919  ·  view source on GitHub ↗
(iterator: IterableIterator<A>, maxChunkSize?: number)

Source from the content-addressed store, hash-verified

916 * @since 2.0.0
917 */
918export const fromIteratorSucceed = <A>(iterator: IterableIterator<A>, maxChunkSize?: number): Stream<A> =>
919 fromChannel(Channel.fromIteratorArray(() => iterator, maxChunkSize))
920
921/**
922 * Creates a new `Stream` from an iterable collection of values.

Callers

nothing calls this directly

Calls 1

fromChannelFunction · 0.70

Tested by

no test coverage detected