MCPcopy
hub / github.com/Effect-TS/effect / withPermits

Method withPermits

packages/effect/src/Effect.ts:11789–11789  ·  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

11787 * are released by other tasks.
11788 */
11789 withPermits(permits: number): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>
11790
11791 /**
11792 * 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
makeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected