4 ms·
> your program may deadlock non-deterministically This was always true, even prior to async. Rust's thread safety features have never prevented deadlocks. They
by dataangel 5y ago
> your program may deadlock non-deterministically
This was always true, even prior to async. Rust's thread safety features have never prevented deadlocks. They prevent races, but not deadlocks. RAII makes some patterns that can cause deadlock more avoidable. Nothing in Rust prevents you from spawning a thread that locks a mutex and then never gives it up.
- klabb3 5y agoAh, yes, absolutely! I should have been clear that async caused a fire sale of many more footguns, that didn't exist previously.