MCPcopy Create free account
hub / github.com/effect-app/libs / takeN

Function takeN

repos/effect/packages/effect/src/Queue.ts:1304–1307  ·  view source on GitHub ↗
(
  self: Dequeue<A, E>,
  n: number
)

Source from the content-addressed store, hash-verified

1302 *
1303 * ```ts import.meta.vitest
1304 * import { Cause, Effect, Queue } from "effect"
1305 *
1306 * const program = Effect.gen(function*() {
1307 * const queue = yield* Queue.bounded<number, Cause.Done>(10)
1308 *
1309 * // Add several messages
1310 * yield* Queue.offerAll(queue, [1, 2, 3, 4, 5, 6, 7])

Callers

nothing calls this directly

Calls 1

takeBetweenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…