Fearless concurrency (the marketing was right)
thread::spawn starts threads. mpsc::channel passes messages. Mutex<T> shares mutable state — lock before use.
Quirk: Send and Sync traits mark what can cross thread boundaries. The compiler enforces thread safety at compile time. JavaScript wishes.
Output
Press Run to execute your code.