MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeSemaphore

Function makeSemaphore

packages/effect/src/internal/effect/circular.ts:132–132  ·  view source on GitHub ↗
(permits: number)

Source from the content-addressed store, hash-verified

130
131/** @internal */
132export const makeSemaphore = (permits: number) => core.sync(() => unsafeMakeSemaphore(permits))
133
134class Latch extends Effectable.Class<void> implements Effect.Latch {
135 waiters: Array<(_: Effect.Effect<void>) => void> = []

Callers

nothing calls this directly

Calls 2

syncMethod · 0.80
unsafeMakeSemaphoreFunction · 0.70

Tested by

no test coverage detected