/// Create a new waiter object.
Create a new waiter object.
Create a new waiter object .
pub fn new() -> Arc<Waiter> {
        Arc::new(Waiter {
            port: zx::Port::create().map_err(impossible_error).unwrap(),
            key_map: Mutex::new(HashMap::new()),
            next_key: AtomicU64::new(1),
        })
    }
pub fn new ( ) -> Arc < Waiter > { Arc :: new ( Waiter { port : zx :: Port :: create ( ) . map_err ( impossible_error ) . unwrap ( ) , key_map : Mutex :: new ( HashMap :: new ( ) ) , next_key : AtomicU64 :: new ( 1 ) , } ) }
Create a new waiter object.
Create a new waiter object .