I tried Rust’s new async/await feature for the first time: “Downloading 100,000 Files Using Async Rust” http://patshaughnessy.net/2020/1/20/downloading-100000-files-using-async-rust … @rustlang
-
-
Replying to @pat_shaughnessy
Good summary
> Instead of launching an entirely new thread for each task, it runs all three tasks on the same thread.
I don’t think that’s the case. Tokio multiplexes m tasks into a pool of n threads so it’s able to use all available cores. (M:N threading)1 reply 0 retweets 2 likes -
Replying to @wezm
Oh ok thanks! Yea I suspected it wasn’t quite that simple. I’ll update the post later today. I wonder if there’s a way to set m and n? Or at least know what those values are...
1 reply 0 retweets 0 likes
Replying to @pat_shaughnessy
On thread per core/CPU thread by default https://docs.rs/tokio/0.2.10/tokio/runtime/index.html#threaded-scheduler …
3:32 PM - 21 Jan 2020
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.