pub fn run_backtest_with_control<M: BacktestModel>(
model: &mut M,
events: &[M::Event],
config: BacktestConfig,
cancellation: &CancellationToken,
deadline: Instant,
) -> Result<BacktestReport<M::State, M::Action>, BacktestError>Expand description
Execute a deterministic replay while observing cancellation and deadline between input events.