MCPcopy Create free account
hub / github.com/Effect-TS/effect / PartitionedSemaphore.ts

File PartitionedSemaphore.ts

packages/effect/src/PartitionedSemaphore.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * The `PartitionedSemaphore` module provides a semaphore for limiting
3 * concurrency across a shared permit pool while keeping waiters grouped by
4 * partition key. A `PartitionedSemaphore<K>` is useful when many independent

Callers

nothing calls this directly

Calls 5

withPermitMethod · 0.80
takeMethod · 0.65
releaseMethod · 0.65
withPermitsMethod · 0.65

Tested by

no test coverage detected