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

Method takeUpTo

packages/effect/src/internal/groupBy.ts:373–375  ·  view source on GitHub ↗
(max: number)

Source from the content-addressed store, hash-verified

371 }
372
373 takeUpTo(max: number): Effect.Effect<Chunk.Chunk<B>> {
374 return pipe(Queue.takeUpTo(this.dequeue, max), Effect.map(Chunk.map((a) => this.f(a))))
375 }
376
377 takeBetween(min: number, max: number): Effect.Effect<Chunk.Chunk<B>> {
378 return pipe(Queue.takeBetween(this.dequeue, min, max), Effect.map(Chunk.map((a) => this.f(a))))

Callers

nothing calls this directly

Calls 4

pipeFunction · 0.70
takeUpToMethod · 0.65
mapMethod · 0.65
fMethod · 0.65

Tested by

no test coverage detected