pub fn new() -> Latch {
        Latch {
            waiting: VecDeque::new(),
        }
    }
/// Creates a latch with an empty waiting queue.
Creates a latch with an empty waiting queue.
Creates a latch with an empty waiting queue .
pub fn new() -> Latch {
        Latch {
            waiting: VecDeque::new(),
        }
    }
pub fn new ( ) -> Latch { Latch { waiting : VecDeque :: new ( ) , } }
Creates a latch with an empty waiting queue.
Creates a latch with an empty waiting queue .