pub fn wait(&self) {
        let mut count = self.0.count.lock().unwrap();
        while *count > 0 {
            count = self.0.cond.wait(count).unwrap();
        }
    }
/// Wait until all threads have completed.
///
/// This unblocks when the internal count is `0`.
Wait until all threads have completed.
This unblocks when the internal count is `0`.
Wait until all threads have completed . This unblocks when the internal count is ` 0 ` .
pub fn wait(&self) {
        let mut count = self.0.count.lock().unwrap();
        while *count > 0 {
            count = self.0.cond.wait(count).unwrap();
        }
    }
pub fn wait ( & self ) { let mut count = self . 0 . count . lock ( ) . unwrap ( ) ; while * count > 0 { count = self . 0 . cond . wait ( count ) . unwrap ( ) ; } }
Wait until all threads have completed.
Wait until all threads have completed .
&self
&self