by RasmusWL · 10y ago · 0 comments
let mut data = vec![1, 2, 3]; for i in 0..3 { thread::spawn(move || { data[i] += 1; }); }