Struct rayon::ThreadPool
[−]
[src]
pub struct ThreadPool { // some fields omitted }
Methods
impl ThreadPool
fn new(configuration: Configuration) -> Result<ThreadPool, InitError>
Constructs a new thread pool with the given configuration. If
the configuration is not valid, returns a suitable Err
result. See InitError
for more details.
fn install<OP, R>(&self, op: OP) -> R where OP: FnOnce() -> R + Send
Executes op
within the threadpool. Any attempts to join
which occur there will then operate within that threadpool.