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

Function isFull

packages/effect/src/TxQueue.ts:1113–1116  ·  view source on GitHub ↗
(self: TxQueueState)

Source from the content-addressed store, hash-verified

1111 * @since 2.0.0
1112 */
1113export const isFull = (self: TxQueueState): Effect.Effect<boolean> =>
1114 self.capacity === Number.POSITIVE_INFINITY
1115 ? Effect.succeed(false)
1116 : Effect.map(size(self), (currentSize) => currentSize >= self.capacity)
1117
1118/**
1119 * Interrupts the queue gracefully with the current fiber's interruption cause.

Callers

nothing calls this directly

Calls 3

sizeFunction · 0.70
succeedMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected