Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ Semaphore.ts
File
Semaphore.ts
packages/effect/src/Semaphore.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* Limits how many effects can use a shared resource at the same time.
3
*
4
* A `Semaphore` owns a number of permits. Work can run only after acquiring the
Callers
nothing calls this directly
Calls
8
withPermits
Function · 0.85
withPermit
Method · 0.80
resize
Method · 0.65
withPermits
Method · 0.65
withPermitsIfAvailable
Method · 0.65
take
Method · 0.65
takeIfAvailable
Method · 0.65
release
Method · 0.65
Tested by
no test coverage detected