forked from mirror/async-std
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| {
|
||||
let handle = task::spawn(connection_loop(stream));
|
||||
handle.await
|
||||
handle.await?
|
||||
# };
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue