Re:Tokio 1.0 – async runtime for Rust
by thegeomaster on Wednesday December 23, 2020 @07:05PM
(#25523761)
Not just atomics, you'd probably need mutexes or rwlocks in a lot of scenarios, and these can become a bottleneck quickly if you don't think it through. Async has the benefit of context switches (handing off execution) being explicit, so you're fine as long as you don't leave any half-updated state before you do an async function call.
[ Parent
| on HN ]
There are no comments on this comment yet.