pub fn initialize_thread_pool(num_threads: usize) -> Result<(), Error>
Expand description

Initializes the global thread pool used by this library with the given parameters.

Initialization of the global thread pool happens exactly once. Therefore, if you call initialize_thread_pool a second time, it will return an error. An Ok result indicates that this is the first initialization of the thread pool.