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
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...
-
-
On thread per core/CPU thread by default https://docs.rs/tokio/0.2.10/tokio/runtime/index.html#threaded-scheduler …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
> 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)