1use procspawn::{self, spawn};
2use std::thread;
3use std::time::Duration;
4
5fn main() {
6 procspawn::init();
7
8 let mut handle = spawn((), |()| {
9 thread::sleep(Duration::from_secs(10));
10 });
11
12 println!("result: {:?}", handle.join_timeout(Duration::from_secs(1)));
13}