mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-11-29 22:47:43 +02:00
threads1 solution
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user