Update examples/integrate-thread.rs

Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
integrate-threads-example
Florian Gilcher 5 years ago committed by GitHub
parent a9b970c8ec
commit adeabe51d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,7 +64,7 @@ fn main() {
}); });
task::block_on(async move { task::block_on(async move {
println!("waiting for panicing thread"); println!("waiting for panicking thread");
let thread_result = panicing_thread.join().await; let thread_result = panicing_thread.join().await;
match thread_result { match thread_result {
Ok(s) => println!("Result: {}", s), Ok(s) => println!("Result: {}", s),

Loading…
Cancel
Save