Struct rayon::ThreadPool [] [src]

pub struct ThreadPool {
    // some fields omitted
}

Methods

impl ThreadPool
[src]

fn new(configuration: Configuration) -> Result<ThreadPoolInitError>

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.

Trait Implementations

impl Drop for ThreadPool
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more