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

Method withPermits

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

* Runs an effect with the given number of permits and releases the permits * when the effect completes. * * **When to use** * * Use to run an effect while holding a specified number of semaphore permits. * * **Details** * * This function acquires the specified number of pe

(this: Semaphore, permits: number)

Source from the content-addressed store, hash-verified

80 * are released by other tasks.
81 */
82 withPermits(this: Semaphore, permits: number): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
83
84 /**
85 * Runs an effect with the given number of permits and releases the permits

Callers 15

makeFunction · 0.65
makeFunction · 0.65
makeFunction · 0.65
fromClientFunction · 0.65
makeFunction · 0.65
makeMemoryFunction · 0.65
importFunction · 0.65
makeFunction · 0.65
makeFunction · 0.65
upgradeMethod · 0.65

Implementers 1

SemaphoreImplpackages/effect/src/Semaphore.ts

Calls

no outgoing calls

Tested by

no test coverage detected