pub fn await_shutdown(&self) {
        let records = self.records.lock().unwrap();
        let _guard = self
            .shutdown_wakeup
            .wait_while(records, |r| !r.shutting_down || r.thread_count > 0)
            .unwrap();
    }
/// Waits for the `ThreadGroup` to shut down. This is defined as (1)
/// shutdown having been initiated ([`ThreadGroup::shut_down`]) and
/// (2) the thread count having dropped to zero. Note that if this
/// is called from a thread within the group, a deadlock will occur
/// (since the thread count will never become zero).
Waits for the `ThreadGroup` to shut down. This is defined as (1)
shutdown having been initiated ([`ThreadGroup::shut_down`]) and
(2) the thread count having dropped to zero. Note that if this
is called from a thread within the group, a deadlock will occur
(since the thread count will never become zero).
Waits for the ` ThreadGroup ` to shut down . This is defined as ( 1 ) shutdown having been initiated ( [ ` ThreadGroup :: shut_down ` ] ) and ( 2 ) the thread count having dropped to zero . Note that if this is called from a thread within the group a deadlock will occur ( since the thread count will never become zero ) .
pub fn await_shutdown(&self) {
        let records = self.records.lock().unwrap();
        let _guard = self
            .shutdown_wakeup
            .wait_while(records, |r| !r.shutting_down || r.thread_count > 0)
            .unwrap();
    }
pub fn await_shutdown ( & self ) { let records = self . records . lock ( ) . unwrap ( ) ; let _guard = self . shutdown_wakeup . wait_while ( records , | r | ! r . shutting_down || r . thread_count > 0 ) . unwrap ( ) ; }
Waits for the `ThreadGroup` to shut down.
Waits for the ` ThreadGroup ` to shut down .
&self
&self