Struct ThreadPool
Source pub struct ThreadPool { }
Expand description
A thread pool for executing tasks concurrently
Create a new thread pool with the specified number of threads
Execute a job on the thread pool
Wait for all jobs to complete
Get number of worker threads
Executes the destructor for this type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.