3 ms·
Thank you for the detailed explanation! Would you mind elaborating on the polled aspect of rust futures, or link me to some documation? Do you mean that there
by orf 8y ago
Thank you for the detailed explanation!
Would you mind elaborating on the polled aspect of rust futures, or link me to some documation? Do you mean that there is a loop polling the result of a future? How does that work with things like select?
- steveklabnik 8y agoFutures do nothing until the poll method is called. That method returns an enum, saying if it’s ready, pending, etc. the event loop calls poll repeatedly. We have some really in depth docs in the works here but it’s not quite ready yet.
- karavelov 8y agoYes, the executor is that loop. Here is an older blog about Rust futures that is still relevant: http://aturon.github.io/2016/09/07/futures-design/ http://aturon.github.io/2016/09/07/futures-design/