Function
check
(index: number, hitNext: boolean)
Source from the content-addressed store, hash-verified
| 2383 | let count = 0 |
| 2384 | let index = 0 |
| 2385 | const check = (index: number, hitNext: boolean) => (exit: Exit.Exit<any, any>) => { |
| 2386 | exits[index] = exit |
| 2387 | count++ |
| 2388 | if (count === target) { |
| 2389 | cb(core.exitSucceed(core.exitFailCause(cause))) |
| 2390 | } |
| 2391 | if (toPop.length > 0 && hitNext) { |
| 2392 | next() |
| 2393 | } |
| 2394 | } |
| 2395 | const next = () => { |
| 2396 | runFiber(toPop.pop()!, true).addObserver(check(index, true)) |
| 2397 | index++ |