Skip to main content

run

Function run 

Source
pub async fn run(
    ready: &Ready,
    src: Sources<'_>,
    out: &Output,
    on_tick: impl FnMut(u64, &Tick, &[Event]),
) -> Result<Tick>
Expand description

Runs ready on its schedule. After each tick, on_tick gets the run number, the tick and the events since the tick before. The CSV gets one row per cell per tick; at the end of the duration, the report is written. A CSV or report write error ends the run and is returned.

Returns the last tick.