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

Method takeUpTo

packages/effect/src/Queue.ts:153–153  ·  view source on GitHub ↗

* Takes up to max number of values from the queue.

(max: number)

Source from the content-addressed store, hash-verified

151 * Takes up to max number of values from the queue.
152 */
153 takeUpTo(max: number): Effect.Effect<Chunk.Chunk<A>>
154
155 /**
156 * Takes a number of elements from the queue between the specified minimum and

Callers 13

PubSub.test.tsFile · 0.65
Queue.test.tsFile · 0.65
TQueue.test.tsFile · 0.65
takeUpToMethod · 0.65
takeRemainderLoopFunction · 0.65
pollFunction · 0.65
queue.tsFile · 0.65
takeUpToMethod · 0.65
takeUpToMethod · 0.65
pollFunction · 0.65
takeRemainderFunction · 0.65

Implementers 4

QueueSpypackages/effect/test/Sink/constructors
SubscriptionImplpackages/effect/src/internal/pubsub.ts
QueueImplpackages/effect/src/internal/queue.ts
MapDequeuepackages/effect/src/internal/groupBy.t

Calls

no outgoing calls

Tested by 1

takeUpToMethod · 0.52