Package: effect
Module: PartitionedSemaphore
Gets the total capacity.
When to use
Use to inspect the fixed number of permits configured for the semaphore.
Details
Capacity is stored when the semaphore is created and does not change as permits are acquired or released.
See
available for the current number of free permitsSignature
declare const capacity: <K>(self: PartitionedSemaphore<K>) => number
Since v4.0.0