pub fn new(count: usize) -> Self {
        let (tx, rx) = mpsc::sync_channel(count);
        Self {
            remaining: AtomicUsize::new(count),
            tx: tx,
            rx: Mutex::new(rx),
        }
    }
/// Construct a CountDownLatch with the given count
Construct a CountDownLatch with the given count
Construct a CountDownLatch with the given count
pub fn new(count: usize) -> Self {
        let (tx, rx) = mpsc::sync_channel(count);
        Self {
            remaining: AtomicUsize::new(count),
            tx: tx,
            rx: Mutex::new(rx),
        }
    }
pub fn new ( count : usize ) -> Self { let ( tx , rx ) = mpsc :: sync_channel ( count ) ; Self { remaining : AtomicUsize :: new ( count ) , tx : tx , rx : Mutex :: new ( rx ) , } }
Construct a CountDownLatch with the given count
Construct a CountDownLatch with the given count
count
usize