use crossbeam::channel::unbounded; use std::thread; fn main() { let (tx, rx) = unbounded();
use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; use std::thread; fn main() { let counter = Arc::new(AtomicUsize::new(0));