Queue is running game downloads sequentially now

This commit is contained in:
quexeky
2024-10-28 20:57:42 +11:00
parent 1ab61c86b1
commit 5564d23536
4 changed files with 26 additions and 7 deletions

View File

@ -13,7 +13,7 @@ fn test_progress_sequentially() {
fn test_progress_parallel() {
let counter = Arc::new(AtomicUsize::new(0));
let p = ProgressChecker::new(Box::new(test_fn), counter.clone());
p.run_contexts_parallel((1..100).collect(), 10);
p.run_contexts_parallel_background((1..100).collect(), 10);
}
fn test_fn(int: usize) {