lft_auto_config

Function lft_auto_config 

Source
pub fn lft_auto_config() -> ThreadPool
Expand description

Creates a new thread pool with the same number of workers as CPUs are detected.

ยงExamples

Create a new thread pool capable of executing at least one jobs concurrently:

let pool = threadpool::auto_config();