Update README.md

pull/76/head
Dhghomon 4 years ago committed by GitHub
parent 629b543765
commit 801b60b8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8331,7 +8331,7 @@ fn main() {
}
```
`handle` is now a `JoinHandle`. What do we do with it? We use a method called `.join()`. This method means "wait until all the threads are done" (it waits for the threads to join it). So now just write `handle.join()` and it will wait for every of the threads to finish.
`handle` is now a `JoinHandle`. What do we do with it? We use a method called `.join()`. This method means "wait until all the threads are done" (it waits for the threads to join it). So now just write `handle.join()` and it will wait for each of the threads to finish.
```rust
fn main() {

Loading…
Cancel
Save