2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-10-30 16:26:38 +00:00

Update examples/integrate-thread.rs

Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
This commit is contained in:
Florian Gilcher 2019-08-15 13:11:18 +02:00 committed by GitHub
parent a9b970c8ec
commit adeabe51d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),