fn do_pending_tasks(
        &mut self,
        w: &mut impl Write,
        cmd: &Command,
        screen: &mut Screen,
        con: &AppContext,
        tl: TaskLifetime,
    ) -> Result<(), ProgramError> {
        let state = self.mut_state();
        while state.has_pending_task() & !tl.is_expired() {
            state.do_pending_task(screen, &tl);
            state.display(w, screen, con)?;
            state.write_status(w, cmd, &screen, con)?;
        }
        Ok(())
    }
/// execute all the pending tasks until there's none remaining or
///  the allowed lifetime is expired (usually when the user typed a new key)
execute all the pending tasks until there's none remaining or
the allowed lifetime is expired (usually when the user typed a new key)
execute all the pending tasks until there ' s none remaining or the allowed lifetime is expired ( usually when the user typed a new key )
fn do_pending_tasks(
        &mut self,
        w: &mut impl Write,
        cmd: &Command,
        screen: &mut Screen,
        con: &AppContext,
        tl: TaskLifetime,
    ) -> Result<(), ProgramError> {
        let state = self.mut_state();
        while state.has_pending_task() & !tl.is_expired() {
            state.do_pending_task(screen, &tl);
            state.display(w, screen, con)?;
            state.write_status(w, cmd, &screen, con)?;
        }
        Ok(())
    }
fn do_pending_tasks ( & mut self , w : & mut impl Write , cmd : & Command , screen : & mut Screen , con : & AppContext , tl : TaskLifetime , ) -> Result < ( ) , ProgramError > { let state = self . mut_state ( ) ; while state . has_pending_task ( ) & ! tl . is_expired ( ) { state . do_pending_task ( screen , & tl ) ; state . display ( w , screen , con ) ? ; state . write_status ( w , cmd , & screen , con ) ? ; } Ok ( ( ) ) }
execute all the pending tasks until there's none remaining or
the allowed lifetime is expired (usually when the user typed a new key)
execute all the pending tasks until there ' s none remaining or the allowed lifetime is expired ( usually when the user typed a new key )
&mut self
w
&mut impl Write
cmd
&Command
screen
&mut Screen
con
&AppContext
tl
TaskLifetime
&mut self
w
&mut impl Write
cmd
&Command
screen
&mut Screen
con
&AppContext
tl
TaskLifetime