Skip to main content

until

Function until 

Source
pub fn until(
    ctx: &ServiceContext,
    budget: Budget,
    cond: impl FnMut() -> bool,
) -> Result<u64, TimedOut>
Expand description

Wait until cond returns true or budget runs out. Ok carries the microseconds it took (0 if the machine is uncalibrated or the condition already held).