pub fn wait_all(&mut self) {
        for _ in &self.workers {
            self.sender.send(Message::Terminate).unwrap();
        }

        for worker in &mut self.workers {
            if let Some(thread) = worker.thread.take() {
                thread.join().unwrap();
            }
        }
    }
/// Waits for all jobs to be completed.
Waits for all jobs to be completed.
Waits for all jobs to be completed .
pub fn wait_all(&mut self) {
        for _ in &self.workers {
            self.sender.send(Message::Terminate).unwrap();
        }
        for worker in &mut self.workers {
            if let Some(thread) = worker.thread.take() {
                thread.join().unwrap();
            }
        }
    }
pub fn wait_all ( & mut self ) { for _ in & self . workers { self . sender . send ( Message :: Terminate ) . unwrap ( ) ; } for worker in & mut self . workers { if let Some ( thread ) = worker . thread . take ( ) { thread . join ( ) . unwrap ( ) ; } } }
Waits for all jobs to be completed.
Waits for all jobs to be completed .
&mut self