Function jobsteal::make_pool [] [src]

pub fn make_pool(n: usize) -> Result<Pool, Error>

Create a pool with n worker threads.

You can create a pool with 0 worker threads, but jobs won't be run until the pool is given an opportunity to join them. This will occur at scope boundaries, the pool's destructor, or in manual calls to synchronize.