Crates.io | easy_progress |
lib.rs | easy_progress |
version | 0.1.1 |
source | src |
created_at | 2023-04-08 08:48:46.113136 |
updated_at | 2023-04-08 08:56:10.630473 |
description | Get progress easily |
homepage | https://crates.io/crates/easy_progress |
repository | https://github.com/divflex/easy_progress.git |
max_upload_size | |
id | 833508 |
size | 5,447 |
Easy Progress
Get progress easily
This example will produce a ProgressEvent
20 times.
// After loop 100 times it will produce 20 ProgressEvent
let mut p = Progress::new("test", 100, 20);
for _i in 0..100 {
match p.next() {
Some(event) => {
println!("{:?}", event);
}
None => {}
}
std::thread::sleep(std::time::Duration::new(0, 1000 * 100))
}