Struct syncbox::ThreadPool
[−]
[src]
pub struct ThreadPool { // some fields omitted }
pub struct ThreadPool { // some fields omitted }
impl ThreadPool
[src]fn fixed_size(size: u32) -> ThreadPool
fn single_thread() -> ThreadPool
fn new<Q>(core_pool_size: u32, maximum_pool_size: u32, work_queue: Q) -> ThreadPool where Q: SyncQueue<Option<Box<Task>>> + Send + Sync + Clone + 'static
fn run<F>(&self, task: F) where F: FnOnce() + Send + 'static
fn shutdown(&self)
fn shutdown_now(&self)
fn is_shutdown(&self) -> bool
fn await_termination(&self)
impl Run for ThreadPool
[src]