📅  最后修改于: 2022-03-11 14:49:25.946000             🧑  作者: Mango
let threads: Vec<_> = (0..1000).map(|i| {
thread::spawn(move || f(i))
}).collect();
for thread in threads {
thread.join();
}