News for hackers. Stuff that matters.
Re:Tokio 1.0 – async runtime for Rust by akvadrako on Wednesday December 23, 2020 @05:44PM (#25523161)
You probably think async code can't have deadlocks like threaded code can. Async is still multi-threaded it's just that the threads are done in user-space and contain an implicit global lock.
Re:Tokio 1.0 – async runtime for Rust by nicoburns on Wednesday December 23, 2020 @08:07PM (#25524164)
Async is not pre-emptive though (if using a single theaded executor). And thats where most of the unintutive behaviour of threads comes from.
Re:Tokio 1.0 – async runtime for Rust by nialv7 on Thursday December 24, 2020 @11:25PM (#25534180)
Notice I didn't say async code is easier to reason about.