pub fn wait_results(&mut self) -> Vec<project::Chunk> {
        loop {
            match self.get_results() {
                Some(r) => {
                    return r;
                }
                // Keep waiting
                _ => ()
            }

            // Wait a bit so we don't pin the cpu
            std::thread::sleep(std::time::Duration::from_secs(1));
        }
    }
// A blocking function that will loop until there are results in our results queue
A blocking function that will loop until there are results in our results queue
A blocking function that will loop until there are results in our results queue
pub fn wait_results(&mut self) -> Vec<project::Chunk> {
        loop {
            match self.get_results() {
                Some(r) => {
                    return r;
                }
                // Keep waiting
                _ => ()
            }
            // Wait a bit so we don't pin the cpu
            std::thread::sleep(std::time::Duration::from_secs(1));
        }
    }
pub fn wait_results ( & mut self ) -> Vec < project :: Chunk > { loop { match self . get_results ( ) { Some ( r ) => { return r ; } // Keep waiting _ => ( ) } // Wait a bit so we don't pin the cpu std :: thread :: sleep ( std :: time :: Duration :: from_secs ( 1 ) ) ; } }
A blocking function that will loop until there are results in our results queue
A blocking function that will loop until there are results in our results queue
&mut self
&mut self