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 a45f9c51aa
commit 1daba5334a
4 changed files with 33 additions and 12 deletions
@@ -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);
}