forked from mirror/async-std
Update examples/integrate-thread.rs
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
This commit is contained in:
parent
a9b970c8ec
commit
adeabe51d2
1 changed files with 2 additions and 2 deletions
|
@ -64,11 +64,11 @@ fn main() {
|
|||
});
|
||||
|
||||
task::block_on(async move {
|
||||
println!("waiting for panicing thread");
|
||||
println!("waiting for panicking thread");
|
||||
let thread_result = panicing_thread.join().await;
|
||||
match thread_result {
|
||||
Ok(s) => println!("Result: {}", s),
|
||||
Err(e) => println!("Error: {:?}", e),
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue