MCPcopy Index your code
hub / github.com/Effect-TS/effect / collectAllN

Function collectAllN

packages/effect/src/internal/sink.ts:90–91  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

88
89/** @internal */
90export const collectAllN = <In>(n: number): Sink.Sink<Chunk.Chunk<In>, In, In> =>
91 suspend(() => fromChannel(collectAllNLoop(n, Chunk.empty())))
92
93/** @internal */
94const collectAllNLoop = <In>(

Callers

nothing calls this directly

Calls 3

collectAllNLoopFunction · 0.85
suspendFunction · 0.70
fromChannelFunction · 0.70

Tested by

no test coverage detected