/// Returns a future that completes when the event has been signaled.
Returns a future that completes when the event has been signaled.
Returns a future that completes when the event has been signaled .
pub async fn wait(&self) -> Result<()> {
        OnSignals::new(&self.event, zx::Signals::EVENT_SIGNALED).await?;
        self.event.as_handle_ref().signal(zx::Signals::EVENT_SIGNALED, zx::Signals::NONE)?;
        Ok(())
    }
pub async fn wait ( & self ) -> Result < ( ) > { OnSignals :: new ( & self . event , zx :: Signals :: EVENT_SIGNALED ) . await ? ; self . event . as_handle_ref ( ) . signal ( zx :: Signals :: EVENT_SIGNALED , zx :: Signals :: NONE ) ? ; Ok ( ( ) ) }
Returns a future that completes when the event has been signaled.
Returns a future that completes when the event has been signaled .
&self