(self: Dequeue<A, E>)
| 1432 | * Attempts to take one item from the queue without waiting. |
| 1433 | * |
| 1434 | * **Details** |
| 1435 | * |
| 1436 | * Returns `Option.some` when an item is immediately available. Returns |
| 1437 | * `Option.none` when no item is available, when the queue is done, or when the |
| 1438 | * immediate take observes a queue failure. |
| 1439 | * |
| 1440 | * **Example** (Polling without blocking) |
| 1441 | * |
| 1442 | * ```ts import.meta.vitest |
| 1443 | * import { Effect, Option, Queue } from "effect" |
| 1444 | * |
| 1445 | * const program = Effect.gen(function*() { |
| 1446 | * const queue = yield* Queue.bounded<number>(10) |
| 1447 | * |
nothing calls this directly
no test coverage detected
searching dependent graphs…