Comment on Go’s race detector has a mutex blind spotparentComments−jason_oster1ySmall correction: The Arc is for sharing across threads, the Mutex is for mutation. But you are generally correct that they can be used independently.−ViewTrick10021yOf course. But if you’re using a channel then it hides the inner constructs.Comparing writing a web service in Go and rust you would likely also utilize Tokio which has a wide variety of well designed sync primitives.https://docs.rs/tokio/latest/tokio/sync/index.html
Comments
Small correction: The Arc is for sharing across threads, the Mutex is for mutation. But you are generally correct that they can be used independently.
Of course. But if you’re using a channel then it hides the inner constructs.
Comparing writing a web service in Go and rust you would likely also utilize Tokio which has a wide variety of well designed sync primitives.
https://docs.rs/tokio/latest/tokio/sync/index.html