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

Method take

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

* Acquires the specified number of permits and returns the resulting * available permits, suspending the task if they are not yet available. * Concurrent pending `take` calls are processed in a first-in, first-out manner.

(permits: number)

Source from the content-addressed store, hash-verified

11807 * Concurrent pending `take` calls are processed in a first-in, first-out manner.
11808 */
11809 take(permits: number): Effect<number>
11810
11811 /**
11812 * Releases the specified number of permits and returns the resulting

Callers 15

observerMethod · 0.95
SemaphoreClass · 0.95
e2eSuiteFunction · 0.65
makeMemoryFunction · 0.65
makeFunction · 0.65
suiteFunction · 0.65
asyncPauseResumeFunction · 0.65
makeFunction · 0.65
e2eSuiteFunction · 0.65
handleBuiltInOptionFunction · 0.65
Chat.tsFile · 0.65
makeFunction · 0.65

Calls

no outgoing calls

Tested by 6

subscriberFunction · 0.52
subscriberFunction · 0.52
shardFunction · 0.52
takeMethod · 0.52
splitFunction · 0.52
withPermitsScopedFunction · 0.52