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

Function takeAll

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

Source from the content-addressed store, hash-verified

1241 * @since 2.0.0
1242 */
1243export const takeAll = <A, E>(self: Dequeue<A, E>): Effect<Arr.NonEmptyArray<A>, E> =>
1244 takeBetween(self, 1, Number.POSITIVE_INFINITY) as any
1245
1246/**
1247 * Takes all messages from the queue, until the queue has errored or is done.

Callers 1

collectFunction · 0.70

Calls 1

takeBetweenFunction · 0.85

Tested by

no test coverage detected