Bound backtest dataset preparation and preserve replay identity

This commit is contained in:
Boki 2026-10-21 23:18:23 -04:00
parent cca5d71e6e
commit 6bd671d92a
20 changed files with 1420 additions and 155 deletions

View file

@ -39,6 +39,10 @@ export class BacktestPlayback {
this.controller.signal.throwIfAborted();
}
get signal(): AbortSignal {
return this.controller.signal;
}
/** Only race side-effect-free reads; late reads must never resume execution. */
async read<T>(load: () => Promise<T>): Promise<T> {
this.assertRunning();