2 releases
0.1.1 | Apr 8, 2023 |
---|---|
0.1.0 | Apr 8, 2023 |
#2077 in Development tools
6KB
104 lines
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))
}
lib.rs
:
Easy Progress
get progress easily
This example will produce a ProgressEvent
10 times.
let p = Progress::new("my-progress", 100, 10);
p.next() -> Option<ProgressEvent>