Skip to main content

sweep_once

Function sweep_once 

Source
pub async fn sweep_once(registry: Arc<dyn StaleSweep>, schedule: SweepSchedule)
Expand description

One tick: sweep, say what it took.

Public and separate from the timer so a caller — a test, or a deployment reaping once from somewhere else — can run exactly one pass without waiting on a clock. The spawned sweep calls nothing else.