We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a5f606 commit be119bdCopy full SHA for be119bd
examples/multi.rs
@@ -45,11 +45,8 @@ fn main() {
45
thread::sleep(Duration::from_secs(2));
46
}
47
pb.inc(1);
48
- let m = m.clone();
49
let pb2 = pb2.clone();
50
threads.push(thread::spawn(move || {
51
- let spinner = m.add(ProgressBar::new_spinner().with_message(i.to_string()));
52
- spinner.enable_steady_tick(Duration::from_millis(100));
53
thread::sleep(
54
rand::thread_rng().gen_range(Duration::from_secs(1)..Duration::from_secs(5)),
55
);
0 commit comments