pub fn watch_supply(
supply: impl Fn() -> Power,
stop: impl FnOnce(),
done: impl Fn() -> bool,
every: Duration,
)Expand description
While a run by itself goes on: its power asked every every (supply);
unplugged or saving power, or twice in a row unable to tell, stop is
called once and the watch ends; it ends too as soon as done says the
run did.