News for hackers. Stuff that matters.
Re:Tokio 1.0 – async runtime for Rust by nialv7 on Wednesday December 23, 2020 @05:24PM (#25522977)
I don't quite understand why one would find async code hard to read.

Basically if you just ignore the async/await keyword, the code should read mostly the same as synchronous code (which is the point of the async/await effort).

Maybe you have a concrete example of convoluted async code?

Re:Tokio 1.0 – async runtime for Rust by pvorb on Wednesday December 23, 2020 @06:22PM (#25523440)
While it might not be that hard to read, it can certainly be harder to reason about.
Re:Tokio 1.0 – async runtime for Rust by mratsim on Thursday December 24, 2020 @11:04AM (#25528644)
Concurrent code is hard to reason about in general: async or threading included.