Skip to main content

drive

Function drive 

Source
pub async fn drive<T>(
    run: impl Future<Output = T>,
    pipeline: &str,
    handle: PrometheusHandle,
) -> T
Available on crate feature cli-progress only.
Expand description

Drive the run future while rendering one inline progress line per active row. Returns the run’s result after the lines are finalized. The recorder handle is the same one livemetrics::setup_observability installed.