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

Method resize

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

* Adjusts the number of permits available in the semaphore. * * **When to use** * * Use to change the total permit count of an existing semaphore.

(this: Semaphore, permits: number)

Source from the content-addressed store, hash-verified

63 * Use to change the total permit count of an existing semaphore.
64 */
65 resize(this: Semaphore, permits: number): Effect.Effect<void>
66
67 /**
68 * Runs an effect with the given number of permits and releases the permits

Callers 2

Semaphore.test.tsFile · 0.65
Semaphore.tsFile · 0.65

Implementers 1

SemaphoreImplpackages/effect/src/Semaphore.ts

Calls

no outgoing calls

Tested by

no test coverage detected