use std::{thread::{self, JoinHandle, sleep}, time::Duration}; fn main() -> std::io::Result<()> { let jh: JoinHandle<i32> = thread::spawn(|| { sleep(Duration::from_millis(3000)); 88 }); let a: i32 = jh.join().unwrap(); println!("Hello, world! {}", a); Ok(()) }