async fn run_flagged_sweeps<F, Fut>(flag_on: impl Fn() -> bool, sweep: F)Expand description
Run sweep on the archiver’s schedule (a minute after start, then hourly) while flag_on says it is on, and also as soon
as the flag is turned on: it is looked at every minute (the settings are in memory), and a flag that has gone from off to
on since the last look runs the pass then, and the hourly wait starts again from it. A pass whose flag is off is not run;
one whose flag stays on is not run twice inside the hour. A pass that is running is not interrupted by a look. Never returns.