pub async fn lock_now<'terminal>(
        &'terminal mut self,
    ) -> Result<TerminalGuard<'terminal>, ServicesOff> {
        let guard = self.shared.app_guard().await?;
        let event = self.shared.events().read(self.curr_epoch);
        let screen = self.shared.screen().lock().await;
        Ok(TerminalGuard {
            screen,
            guard,
            event,
            curr_epoch: &mut self.curr_epoch,
        })
    }
/// Locks the terminal immediately (except it has to wait for the lock to be
/// available). A locked terminal handle is returned, on which an
/// application can write to the screen or get the most recent event.
///
/// Screen is locked, event channel is locked.
Locks the terminal immediately (except it has to wait for the lock to be
available). A locked terminal handle is returned, on which an
application can write to the screen or get the most recent event.

Screen is locked, event channel is locked.
Locks the terminal immediately ( except it has to wait for the lock to be available ) . A locked terminal handle is returned on which an application can write to the screen or get the most recent event . Screen is locked event channel is locked .
pub async fn lock_now<'terminal>(
        &'terminal mut self,
    ) -> Result<TerminalGuard<'terminal>, ServicesOff> {
        let guard = self.shared.app_guard().await?;
        let event = self.shared.events().read(self.curr_epoch);
        let screen = self.shared.screen().lock().await;
        Ok(TerminalGuard {
            screen,
            guard,
            event,
            curr_epoch: &mut self.curr_epoch,
        })
    }
pub async fn lock_now < ' terminal > ( & ' terminal mut self , ) -> Result < TerminalGuard < ' terminal > , ServicesOff > { let guard = self . shared . app_guard ( ) . await ? ; let event = self . shared . events ( ) . read ( self . curr_epoch ) ; let screen = self . shared . screen ( ) . lock ( ) . await ; Ok ( TerminalGuard { screen , guard , event , curr_epoch : & mut self . curr_epoch , } ) }
Locks the terminal immediately (except it has to wait for the lock to be
available).
Locks the terminal immediately ( except it has to wait for the lock to be available ) .
&'terminal mut self
&'terminal mut self