pub fn notify_n(&self, n: usize) -> usize {
        let mut count  = 0;
        while count < n {
            if let Some(t) = self.wait_queue.lock().pop_front() {
                t.unpark();
                count += 1;
            } else {
                break;
            }
        }
        count
    }
/// Notify up to `n` waiters.
/// Return the number of waiters that were woken up.
Notify up to `n` waiters.
Return the number of waiters that were woken up.
Notify up to ` n ` waiters . Return the number of waiters that were woken up .
pub fn notify_n(&self, n: usize) -> usize {
        let mut count  = 0;
        while count < n {
            if let Some(t) = self.wait_queue.lock().pop_front() {
                t.unpark();
                count += 1;
            } else {
                break;
            }
        }
        count
    }
pub fn notify_n ( & self , n : usize ) -> usize { let mut count = 0 ; while count < n { if let Some ( t ) = self . wait_queue . lock ( ) . pop_front ( ) { t . unpark ( ) ; count += 1 ; } else { break ; } } count }
Notify up to `n` waiters.
Notify up to ` n ` waiters .
&self
n
usize
&self
n
usize