4 ms·
Synchronous code is even easier to reason about than code using async syntax sugar.
by sanxiyn 6y ago
Synchronous code is even easier to reason about than code using async syntax sugar.
- nialv7 6y agoNo, multithreaded synchronous code is not easier to reason about than async. I think most would agree.
- akvadrako 6y agoYou 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.
- sanxiyn 6y agoI disagree, at least in Rust. async is hard. Threading is easy.
- nialv7 6y agoDo you have something that backs up your belief?