fix(threads1): make program panic if threads are not joined

closes #1298
This commit is contained in:
platformer
2022-12-26 02:25:43 -06:00
parent 32b234c9f0
commit 7e4ce38681
2 changed files with 17 additions and 10 deletions

View File

@@ -969,7 +969,7 @@ A challenge with multi-threaded applications is that the main thread can
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-handles
Collect the JoinHandles and wait for them to finish.
Use the JoinHandles to wait for each thread to finish and collect their results.
https://doc.rust-lang.org/std/thread/struct.JoinHandle.html
"""