MCPcopy 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

withPermitsFunction · 0.85
withPermitMethod · 0.80
resizeMethod · 0.65
withPermitsMethod · 0.65
takeMethod · 0.65
takeIfAvailableMethod · 0.65
releaseMethod · 0.65

Tested by

no test coverage detected