Skip to main content

drive_loop

Function drive_loop 

Source
pub async fn drive_loop<B, E, T>(
    terminal: &mut Terminal<B>,
    events: E,
    run: impl Future<Output = T>,
    pipeline: &str,
    handle: PrometheusHandle,
    cancel: CancellationToken,
    tick: Duration,
) -> T
where B: Backend, E: CancelEvents,
Available on crate feature cli-tui only.
Expand description

The render/cancel loop behind drive, generic over the terminal backend and the event source so it runs headless under test.