rename
This commit is contained in:
10
thread/src/main.rs
Normal file
10
thread/src/main.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use std::thread;
|
||||
|
||||
// https://zhuanlan.zhihu.com/p/89716165
|
||||
fn main() {
|
||||
let child = thread::spawn(move || {
|
||||
println!("Hello World!");
|
||||
});
|
||||
let _res = child.join().unwrap();
|
||||
println!("Finished!");
|
||||
}
|
||||
Reference in New Issue
Block a user