摘要: Code from previous blog: use std::thread; use std::time::Duration; fn main() { thread::spawn(|| { for i in 1..10 { println!("hi number {} from the spa 阅读全文
posted @ 2024-03-08 20:49 Zhentiw 阅读(8) 评论(0) 推荐(0) 编辑
摘要: We use spawnto create a new thread: use std::thread; use std::time::Duration; fn main() { thread::spawn(|| { for i in 1..10 { println!("hi number {} f 阅读全文
posted @ 2024-03-08 20:34 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑