MCPcopy Create free account
hub / github.com/Effect-TS/effect / takeN

Function takeN

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

Source from the content-addressed store, hash-verified

1327 * @since 2.0.0
1328 */
1329export const takeN = <A, E>(
1330 self: Dequeue<A, E>,
1331 n: number
1332): Effect<Array<A>, E> => takeBetween(self, n, n)
1333
1334/**
1335 * Takes between `min` and `max` messages from the queue.

Callers

nothing calls this directly

Calls 1

takeBetweenFunction · 0.85

Tested by

no test coverage detected