Struct threads_pool::common::ThreadPool
[−]
[src]
pub struct ThreadPool { /* fields omitted */ }
Methods
impl ThreadPool
[src]
pub fn new(size: usize) -> ThreadPool
[src]
pub fn execute<F>(&self, f: F) where
F: FnOnce() + Send + 'static,
[src]
F: FnOnce() + Send + 'static,