Adding checks for the stopper callback

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-10-29 22:15:44 +11:00
parent 99beca4dbe
commit 01ce253bda
4 changed files with 33 additions and 12 deletions

View File

@ -18,6 +18,6 @@ fn test_progress_parallel() {
p.run_contexts_parallel_background((1..100).collect(), 10);
}
fn test_fn(int: usize) {
fn test_fn(int: usize, callback: Arc<AtomicBool>) {
println!("{}", int);
}