pub fn check(
root: &Path,
watch: &mut Watch,
now: u64,
processes: impl FnOnce() -> Vec<Proc>,
) -> Option<Idle>Expand description
One look at the slot under root at now (epoch seconds). processes lists the machine’s
processes and is only called when a slot is held. Keeps <slot>/idle in step with what it
finds, and returns the holder when it is idle.