effect-io-ai

Package: effect
Module: Queue

Queue.size

Retrieves the size of the queue, which is equal to the number of elements in the queue. This may be negative if fibers are suspended waiting for elements to be added to the queue.

Signature

declare const size: <A>(self: Dequeue<A> | Enqueue<A>) => Effect.Effect<number>

Source

Since v2.0.0