mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
Add missing ? operator after handle.await
According to line#118, there should be a `?` operator after `await`.
This commit is contained in:
parent
efab39eeaf
commit
4742f461fe
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ We can "fix" it by waiting for the task to be joined, like this:
|
||||||
#
|
#
|
||||||
# async move |stream| {
|
# async move |stream| {
|
||||||
let handle = task::spawn(connection_loop(stream));
|
let handle = task::spawn(connection_loop(stream));
|
||||||
handle.await
|
handle.await?
|
||||||
# };
|
# };
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue