Function
check
(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++ |