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

Method withPermits

packages/effect/src/Effect.ts:11790–11790  ·  view source on GitHub ↗

* Runs an effect with the given number of permits and releases the permits * when the effect completes. * * **Details** * * This function acquires the specified number of permits before executing * the provided effect. Once the effect finishes, the permits are released. * If ins

(permits: number)

Source from the content-addressed store, hash-verified

11788 * are released by other tasks.
11789 */
11790 withPermits(permits: number): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>
11791
11792 /**
11793 * Runs an effect only if the specified number of permits are immediately

Callers 15

makeMemoryFunction · 0.80
importFunction · 0.80
makeFunction · 0.80
makeFunction · 0.80
seekMethod · 0.80
readMethod · 0.80
readAllocMethod · 0.80
truncateMethod · 0.80
writeMethod · 0.80
writeAllMethod · 0.80
Chat.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected