100-exercises-to-learn-rust
100-exercises-to-learn-rust copied to clipboard
Contradiction in section 7.11
In section 7.11 Locks, Send and Arc, it seems that the text contradict itself. First in the section "Who holds the lock?" it says:
We can't send a Mutex<Ticket> over a channel, because Mutex is not Clone
However, a bit below in the section "Our challenges", it says:
We can send a Mutex over a channel because it's Send
That's confusing and I'm not sure if we can send a mutex over a channel or not after all.