effect-io-ai

Package: effect
Module: Queue

Queue.takeN

Takes the specified number of elements from the queue. If there are fewer than the specified number of elements available, it suspends until they become available.

Signature

declare const takeN: { (n: number): <A>(self: Dequeue<A>) => Effect.Effect<Chunk.Chunk<A>>; <A>(self: Dequeue<A>, n: number): Effect.Effect<Chunk.Chunk<A>>; }

Source

Since v2.0.0