45
The State of Async Rust: Runtimes
(corrode.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
I myself often use channels. And pass owned data around.
I don't think anyone argues that Arc+interior-mutation is ideal. But it's the over-the-top language like "complete nightmare" that some may take issue with.
Note that I again make the distinction between
Mutex, and all interior mutation primitives. BecauseMutexis indeed a bad choice in many cases. and over-usage of it may indeed be a signal that we have a developer who's not comfortable with Rust's ownership/borrowing semantics.Mutexspecifically as above.async-lock,tokio,parking_lot, or juststd?I used parking_lot back then.