Allowing some dead code features because they are there for future use (potentially)

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-11-04 18:03:18 +11:00
parent 201c8a4e7b
commit 191e62c500
3 changed files with 5 additions and 2 deletions

View File

@ -31,11 +31,13 @@ where
capacity: capacity.into(),
}
}
#[allow(dead_code)]
pub fn run_contexts_sequentially(&self, contexts: Vec<T>) {
for context in contexts {
(self.f)(context, self.callback.clone(), self.counter.clone());
}
}
#[allow(dead_code)]
pub fn run_contexts_parallel_background(&self, contexts: Vec<T>, max_threads: usize) {
let threads = ThreadPoolBuilder::new()
// If max_threads == 0, then the limit will be determined