/// Run until the given StopPredicate becomes true for all instances.
/// Return true if it runs to completion according to StopPredicate.
/// Otherwise return false, which indicates the network has stalled.
Run until the given StopPredicate becomes true for all instances.
Return true if it runs to completion according to StopPredicate.
Otherwise return false, which indicates the network has stalled.
Run until the given StopPredicate becomes true for all instances . Return true if it runs to completion according to StopPredicate . Otherwise return false which indicates the network has stalled .
pub fn run_until(&mut self, pred: StopPredicate<'a>) -> bool {
        info!(self.logger, "{}", &self.config);
        self.stop_predicate = pred;
        loop {
            match self.process() {
                NetworkStatus::Continued => continue,
                NetworkStatus::Stopped => return true,
                NetworkStatus::Stalled => {
                    warn!(self.logger, "Stalled");
                    self.instances
                        .iter()
                        .for_each(|instance| warn!(self.logger, "{}", instance));
                    return false;
                }
            }
        }
    }
pub fn run_until ( & mut self , pred : StopPredicate < ' a > ) -> bool { info ! ( self logger " " self config ) ; self . stop_predicate = pred ; loop { match self . process ( ) { NetworkStatus :: Continued => continue , NetworkStatus :: Stopped => return true , NetworkStatus :: Stalled => { warn ! ( self logger " " ) ; self . instances . iter ( ) . for_each ( | instance | warn ! ( self logger " " instance ) ) ; return false ; } } } }
Run until the given StopPredicate becomes true for all instances.
Run until the given StopPredicate becomes true for all instances .
&mut self
pred
StopPredicate<'a>