Function utils::multithreading::worker_pool

source ยท
pub fn worker_pool(worker: impl Fn() + Copy + Send)
Expand description

Run a worker function concurrently using a pool of worker threads.

This is a wrapper around std::thread::scope for spawning a pool of identical worker threads.

The number of workers is controlled by get_thread_count.