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

Function collectAllWhile

packages/effect/src/internal/sink.ts:205–206  ·  view source on GitHub ↗
(predicate: Predicate<In>)

Source from the content-addressed store, hash-verified

203 <In, Out extends In>(refinement: Refinement<In, Out>): Sink.Sink<Chunk.Chunk<Out>, In, In>
204 <In>(predicate: Predicate<In>): Sink.Sink<Chunk.Chunk<In>, In, In>
205} = <In>(predicate: Predicate<In>): Sink.Sink<Chunk.Chunk<In>, In, In> =>
206 fromChannel(collectAllWhileReader(predicate, Chunk.empty()))
207
208/** @internal */
209const collectAllWhileReader = <In>(

Callers

nothing calls this directly

Calls 2

collectAllWhileReaderFunction · 0.85
fromChannelFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…