run_while

Function run_while 

Source
pub fn run_while<F>(condition: F)
where F: FnMut() -> bool + 'static,
Expand description

Run the executor while a function returns true

The function passed as condition will run on every loop of the executor. The executor will yield anytime the condition evaluates to true. You can restart execution by issuing another run command