threads1 solution

This commit is contained in:
mo8it
2024-07-01 10:59:33 +02:00
parent 663a03a17b
commit b000164eed
3 changed files with 52 additions and 12 deletions
+1 -1
View File
@@ -1037,7 +1037,7 @@ hint = """
https://doc.rust-lang.org/std/thread/fn.spawn.html
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 done.
https://doc.rust-lang.org/book/ch16-01-threads.html#waiting-for-all-threads-to-finish-using-join-handles
Use the `JoinHandle`s to wait for each thread to finish and collect their