MCPcopy Index your code
hub / github.com/Effect-TS/effect / check

Function check

packages/effect/src/internal/fiberRuntime.ts:2375–2384  ·  view source on GitHub ↗
(index: number, hitNext: boolean)

Source from the content-addressed store, hash-verified

2373 let count = 0
2374 let index = 0
2375 const check = (index: number, hitNext: boolean) => (exit: Exit.Exit<any, any>) => {
2376 exits[index] = exit
2377 count++
2378 if (count === target) {
2379 cb(core.exitSucceed(core.exitFailCause(cause)))
2380 }
2381 if (toPop.length > 0 && hitNext) {
2382 next()
2383 }
2384 }
2385 const next = () => {
2386 runFiber(toPop.pop()!, true).addObserver(check(index, true))
2387 index++

Callers 5

checkMethod · 0.85
schedule.tsFile · 0.85
[OpCodes.OP_WHILE]Method · 0.85
nextFunction · 0.85
forEachConcurrentDiscardFunction · 0.85

Calls 1

nextFunction · 0.70

Tested by 1

checkMethod · 0.68