1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-21 08:19:32 +02:00

Minor fixes to async notes (#607)

* `join!( .., time::sleep(..))` isn't really a "timeout"

* Remove suggestion to make `sleep` take `&mut self`

I'm not sure what doing so demonstrates.

* Update src/async/control-flow/join.md

Co-authored-by: rbehjati <razieh@google.com>

---------

Co-authored-by: rbehjati <razieh@google.com>
This commit is contained in:
Dustin J. Mitchell
2023-05-04 07:59:19 -04:00
committed by GitHub
parent 1288d11adb
commit cce3fff0d0
2 changed files with 3 additions and 6 deletions

View File

@ -60,6 +60,4 @@ async fn main() {
* Try creating a new sleeper struct that will sleep for a random amount of time
and adding it to the Vec.
* Try making the `sleep` call take `&mut self`.
</details>