14/28
Part 4 of 6 · A pool and a coordinatorLearn and do
Stop when nothing is pending
pending on the small site, with equal fetch times:
| Moment | pending |
|---|---|
| at the start | { / } |
/ finishes | { /a, /b } |
/a and /b finish | { /c, /broken } |
/c and /broken finish | { }: empty, the crawl is over |
pending is empty. Can a fetch still be running somewhere?
Pick an answer above to see the rest
as_completed gets 3 futures, and the loop adds a fourth while it runs. How many come out of the loop?
Pick one to see what it prints.
Pick an answer above to see the rest