pub fn init(workers: usize)Expand description
Start the process thread pool with the given number of worker threads. Idempotent โ later calls are no-ops once initialized.
ยงPanics
Panics if the OS refuses to spawn one of the workers pool threads
(std::thread::Builder::spawn failure, e.g. the process is out of
resources) โ this is treated as fatal because a partially-started pool
would silently drop later spawn_blocking work.