effect-io-ai

Package: effect
Module: TQueue

TQueue.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: TDequeue<A> | TEnqueue<A>) => STM.STM<number>

Source

Since v2.0.0