News for hackers. Stuff that matters.
Re:Tokio 1.0 – async runtime for Rust by ibraheemdev on Wednesday December 23, 2020 @05:07PM (#25522824)
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.
Re:Tokio 1.0 – async runtime for Rust by Scarbutt on Wednesday December 23, 2020 @05:43PM (#25523153)
True, but everyday more and more libraries are getting tedious to use in blocking mode.
Re:Tokio 1.0 – async runtime for Rust by josephg on Wednesday December 23, 2020 @06:32PM (#25523523)
In 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.