mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05:00
Merge pull request #1203 from skaunov/patch-2
Correct a link in `threads1` `hint`
This commit is contained in:
commit
cade600c91
1 changed files with 1 additions and 1 deletions
|
@ -969,7 +969,7 @@ https://doc.rust-lang.org/std/thread/fn.spawn.html
|
||||||
|
|
||||||
A challenge with multi-threaded applications is that the main thread can
|
A challenge with multi-threaded applications is that the main thread can
|
||||||
finish before the spawned threads are completed.
|
finish before the spawned threads are completed.
|
||||||
https://doc.rust-lang.org/book/ch16-01-threads.html#waiting-for-all-threads-to-finish-using-join-handle
|
https://doc.rust-lang.org/book/ch16-01-threads.html#waiting-for-all-threads-to-finish-using-join-handles
|
||||||
|
|
||||||
Collect the JoinHandles and wait for them to finish.
|
Collect the JoinHandles and wait for them to finish.
|
||||||
https://doc.rust-lang.org/std/thread/struct.JoinHandle.html
|
https://doc.rust-lang.org/std/thread/struct.JoinHandle.html
|
||||||
|
|
Loading…
Reference in a new issue