Package: effect
Module: PartitionedSemaphore
A PartitionedSemaphore is a concurrency primitive that can be used to
control concurrent access to a resource across multiple partitions identified
by keys.
The total number of permits is shared across all partitions, with waiting permits equally distributed among partitions using a round-robin strategy.
This is useful when you want to limit the total number of concurrent accesses to a resource, while still allowing for fair distribution of access across different partitions.
Signature
declare const make: <K = unknown>(options: { readonly permits: number; }) => Effect.Effect<PartitionedSemaphore<K>>
Since v3.19.4