4 ms·
If you think OS threads are "better" than async tasks, then use them. Other people want to use async, so they use it. Rust does not have a runtime and provides
by ibraheemdev 6y ago
If you think OS threads are "better" than async tasks, then use them. Other people want to use async, so they use it. Rust does not have a runtime and provides blocking APIs by default, but gives you the option to use async if you want to.
- Scarbutt 6y agoTrue, but everyday more and more libraries are getting tedious to use in blocking mode.
- josephg 6y agoIn rust you can block your thread on the completion of an async future. Let other people use async code if they want to, and you can write your code in a syncronous blocking kind of way.