forked from mirror/async-std
Merge pull request #714 from abhijeetbhagat/patch-1
Add missing ? operator after handle.await
This commit is contained in:
commit
4034d58709
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