因此,Rust代码经常会看到将数据clone(),然后move到线程中:. let b = aa.clone(); thread::spawn(move || { b... }) 假如,数据需要在多线程共享, ...
確定! 回上一頁