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

Method release

packages/effect/src/Semaphore.ts:154–154  ·  view source on GitHub ↗

* Releases the specified number of permits and returns the resulting * available permits. * * **When to use** * * Use to manually return permits acquired by a lower-level coordination * protocol.

(this: Semaphore, permits: number)

Source from the content-addressed store, hash-verified

152 * protocol.
153 */
154 release(this: Semaphore, permits: number): Effect.Effect<number>
155
156 /**
157 * Releases all permits held by this semaphore and returns the resulting available permits.

Callers 15

makeFunction · 0.65
makeFunction · 0.65
makeFunction · 0.65
makeFunction · 0.65
cleanupFunction · 0.65
makeConectionFunction · 0.65
PgClient.tsFile · 0.65
fromClientFunction · 0.65
makeFunction · 0.65
makeMemoryFunction · 0.65
makeFunction · 0.65
makeFunction · 0.65

Implementers 1

SemaphoreImplpackages/effect/src/Semaphore.ts

Calls

no outgoing calls

Tested by

no test coverage detected