effect-io-ai

Package: effect
Module: TPubSub

TPubSub.size

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

Signature

declare const size: <A>(self: TPubSub<A>) => STM.STM<number>

Source

Since v2.0.0