mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-13 23:35:40 +02:00
Clean up and unify exercises
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
// threads1.rs
|
||||
//
|
||||
// This program spawns multiple threads that each run for at least 250ms, and
|
||||
// each thread returns how much time they took to complete. The program should
|
||||
// wait until all the spawned threads have finished and should collect their
|
||||
// return values into a vector.
|
||||
//
|
||||
// Execute `rustlings hint threads1` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
use std::thread;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
Reference in New Issue
Block a user