MCPcopy Create free account
hub / github.com/effect-app/libs / release

Method release

repos/effect/packages/effect/src/Semaphore.ts:140–140  ·  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

138 *
139 * **When to use**
140 *
141 * Use to manually acquire permits without waiting, paired with `release`.
142 */
143 takeIfAvailable(this: Semaphore, permits: number): Effect.Effect<boolean>

Callers 15

SEM_withPermitsDurationFunction · 0.65
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

Implementers 1

SemaphoreImplrepos/effect/packages/effect/src/Semap

Calls

no outgoing calls

Tested by

no test coverage detected