Trying to understand how FuturesUnordered works. Getting tripped up with how the
ready_to_run_queue interacts with linked list. Specifically, confused by
unlink. Does anyone have a good reference as to how this works? Specific questions include:
The docs mention under heavy thread contention, a compare-exchange loop could become costly. What does thread contention mean here?
How does using
stubresolve this? Confused as to how using
next_allas needed for iterator. When will there be a case where head_all -> stub -> next?
More generally, would love an explanation about how
stub. Particularly for the impl Stream block