listenBacktestProgress

declare function listenBacktestProgress(fn: (event: ProgressBacktestContract) => void): () => void;

Subscribes to backtest progress events with queued async processing.

Emits during Backtest.background() execution to track progress. Events are processed sequentially in order received, even if callback is async. Uses queued wrapper to prevent concurrent execution of the callback.

Parameter Description
fn Callback function to handle progress events