How to make Rust execute all given futures (like join_all!
) limiting to execute say 10 futures at once?
I need to download files from a big number of servers, but query no more than 10 servers simultaneously (to accurately measure their timeouts: if I query too many servers at once,, they timeout, even if the servers by themselves are fast).