pub fn wait(&self) {
        loop {
            if self.channels.iter().any(|x| !x.empty()) {
                std::thread::sleep(std::time::Duration::from_millis(50));
                continue;
            }
            break;
        }
    }
/// Block until no sounds are playing. Convenient for keeping a thread alive until all sounds
/// have played.
Block until no sounds are playing. Convenient for keeping a thread alive until all sounds
have played.
Block until no sounds are playing . Convenient for keeping a thread alive until all sounds have played .
pub fn wait(&self) {
        loop {
            if self.channels.iter().any(|x| !x.empty()) {
                std::thread::sleep(std::time::Duration::from_millis(50));
                continue;
            }
            break;
        }
    }
pub fn wait ( & self ) { loop { if self . channels . iter ( ) . any ( | x | ! x . empty ( ) ) { std :: thread :: sleep ( std :: time :: Duration :: from_millis ( 50 ) ) ; continue ; } break ; } }
Block until no sounds are playing.
Block until no sounds are playing .
&self
&self