effect-io-ai

Package: effect
Module: PartitionedSemaphore

PartitionedSemaphore.capacity

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

Signature

declare const capacity: <K>(self: PartitionedSemaphore<K>) => number

Source

Since v4.0.0