pub async fn wait_user<'terminal>(
        &'terminal mut self,
        delay: Duration,
    ) -> Result<TerminalGuard<'terminal>, ServicesOff> {
        time::sleep(delay).await;
        self.clear_event();
        self.listen().await
    }
/// Waits for user input before continuing, but waits for some given time
/// (`delay`). Clears any previous event after waiting and listening to a
/// new event.
Waits for user input before continuing, but waits for some given time
(`delay`). Clears any previous event after waiting and listening to a
new event.
Waits for user input before continuing but waits for some given time ( ` delay ` ) . Clears any previous event after waiting and listening to a new event .
pub async fn wait_user<'terminal>(
        &'terminal mut self,
        delay: Duration,
    ) -> Result<TerminalGuard<'terminal>, ServicesOff> {
        time::sleep(delay).await;
        self.clear_event();
        self.listen().await
    }
pub async fn wait_user < ' terminal > ( & ' terminal mut self , delay : Duration , ) -> Result < TerminalGuard < ' terminal > , ServicesOff > { time :: sleep ( delay ) . await ; self . clear_event ( ) ; self . listen ( ) . await }
Waits for user input before continuing, but waits for some given time
(`delay`).
Waits for user input before continuing but waits for some given time ( ` delay ` ) .
&'terminal mut self
delay
Duration
&'terminal mut self
delay
Duration