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

Function take

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

Source from the content-addressed store, hash-verified

1394 * queue fails, the Effect will fail with the error.
1395 *
1396 * **Example** (Taking one value)
1397 *
1398 * ```ts import.meta.vitest
1399 * import { Cause, Effect, Exit, Queue } from "effect"
1400 *
1401 * const program = Effect.gen(function*() {
1402 * const queue = yield* Queue.bounded<string, Cause.Done>(3)

Callers

nothing calls this directly

Calls 2

takeUnsafeFunction · 0.85
awaitTakeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…