Arc<Mutex<T>> vs channels

57 points Useful_Lecture_5927 40 comments

How do you decide when to use Arc<Mutex<T>> vs channels in Rust?

I've been learning Rust and I understand the basic differences, but I'm still struggling with the design decision of when one approach is preferable to the other in a real application