summaryrefslogtreecommitdiff
path: root/exercises/threads/threads2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/threads/threads2.rs')
-rw-r--r--exercises/threads/threads2.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/exercises/threads/threads2.rs b/exercises/threads/threads2.rs
index ada3d14..62dad80 100644
--- a/exercises/threads/threads2.rs
+++ b/exercises/threads/threads2.rs
@@ -1,7 +1,11 @@
// threads2.rs
-// Execute `rustlings hint threads2` or use the `hint` watch subcommand for a hint.
-// Building on the last exercise, we want all of the threads to complete their work but this time
-// the spawned threads need to be in charge of updating a shared value: JobStatus.jobs_completed
+//
+// Building on the last exercise, we want all of the threads to complete their
+// work but this time the spawned threads need to be in charge of updating a
+// shared value: JobStatus.jobs_completed
+//
+// Execute `rustlings hint threads2` or use the `hint` watch subcommand for a
+// hint.
// I AM NOT DONE
@@ -27,8 +31,9 @@ fn main() {
}
for handle in handles {
handle.join().unwrap();
- // TODO: Print the value of the JobStatus.jobs_completed. Did you notice anything
- // interesting in the output? Do you have to 'join' on all the handles?
+ // TODO: Print the value of the JobStatus.jobs_completed. Did you notice
+ // anything interesting in the output? Do you have to 'join' on all the
+ // handles?
println!("jobs completed {}", ???);
}
}