Skip to main content

run_with_progress

Function run_with_progress 

Source
pub async fn run_with_progress<F>(
    client: &Client,
    sites: &[Site],
    username: &Username,
    options: ExecutorOptions,
    on_outcome: F,
) -> Vec<CheckOutcome>
where F: FnMut(&CheckOutcome),
Expand description

Variant of run that invokes on_outcome for each completed probe.

Useful for driving a live progress indicator or for emitting streaming output before the full scan finishes. The callback runs on the executor task between completions; long work inside it will throttle the loop.