Partitioned<K>Alias interface for a PartitionedSemaphore keyed by values of type K.
When to use
Use as an alternate exported name for a partitioned permit pool keyed by K.
Details
This interface does not add members beyond PartitionedSemaphore; it
provides an alternate exported name for APIs that refer to a partitioned
permit pool.
export interface interface Partitioned<in K>Alias interface for a PartitionedSemaphore keyed by values of type K.
When to use
Use as an alternate exported name for a partitioned permit pool keyed by K.
Details
This interface does not add members beyond PartitionedSemaphore; it
provides an alternate exported name for APIs that refer to a partitioned
permit pool.
Partitioned<in function (type parameter) K in Partitioned<in K>K> extends interface PartitionedSemaphore<in K>A PartitionedSemaphore controls access to a shared permit pool while
tracking waiters by partition key.
When to use
Use to coordinate shared permits across partition keys so waiting groups make
progress without one group monopolizing the pool.
Details
Waiting permits are distributed across partitions in round-robin order.
PartitionedSemaphore<function (type parameter) K in Partitioned<in K>K> {}