Skip to main content

drive

Function drive 

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

Drive the run future under the full-screen TUI. Returns the run’s result after the terminal is restored. cancel is the token wired into ExecuteOptions.cancel; q / Ctrl-C trigger it.