Hacker News new | ask | show | jobs
by mastax 213 days ago
You can pass the mutex by value and it does continue to protect its value.

https://play.rust-lang.org/?version=stable&mode=debug&editio...