Skip to main content

until_paced

Function until_paced 

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

until, sleeping pace between looks: for a wait measured in seconds, where a look every moment would only hammer the device. See Deadline::paced.