pub async fn await_stale_sessions(&self, status: &StaleSessionStatus) {
        loop {
            let notified = self.notify.notified();
            {
                let l = self.sessions.lock().unwrap();
                let all_gone = l
                    .sessions
                    .iter()
                    .all(|s| !s.maybe_playing || s.seqnum >= status.next_seqnum);
                if all_gone {
                    return;
                }
            }
            notified.await;
        }
    }
/// Waits for all of the sessions described by `status` to expire or be torn down.
Waits for all of the sessions described by `status` to expire or be torn down.
Waits for all of the sessions described by ` status ` to expire or be torn down .
pub async fn await_stale_sessions(&self, status: &StaleSessionStatus) {
        loop {
            let notified = self.notify.notified();
            {
                let l = self.sessions.lock().unwrap();
                let all_gone = l
                    .sessions
                    .iter()
                    .all(|s| !s.maybe_playing || s.seqnum >= status.next_seqnum);
                if all_gone {
                    return;
                }
            }
            notified.await;
        }
    }
pub async fn await_stale_sessions ( & self , status : & StaleSessionStatus ) { loop { let notified = self . notify . notified ( ) ; { let l = self . sessions . lock ( ) . unwrap ( ) ; let all_gone = l . sessions . iter ( ) . all ( | s | ! s . maybe_playing || s . seqnum >= status . next_seqnum ) ; if all_gone { return ; } } notified . await ; } }
Waits for all of the sessions described by `status` to expire or be torn down.
Waits for all of the sessions described by ` status ` to expire or be torn down .
&self
status
&StaleSessionStatus