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

Function sizeUnsafe

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

Source from the content-addressed store, hash-verified

1733 * @since 4.0.0
1734 */
1735export const sizeUnsafe = <A, E>(self: Dequeue<A, E>): number => self.state._tag === "Done" ? 0 : self.messages.length
1736
1737/**
1738 * Checks whether the queue is full synchronously.

Callers 3

toJSONFunction · 0.70
sizeFunction · 0.70
isFullUnsafeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected