SpeculativeSequencer

constructor(sequencer: TurnSequencer<A>, game: SpeculativeGame<S, A>, initialState: S, scope: CoroutineScope)

Parameters

sequencer

The backing TurnSequencer. Lifetime is owned by the caller.

game

The consumer-owned state machine. Must be pure and deterministic.

initialState

The authoritative starting state (before any actions).

scope

The CoroutineScope that owns the background committed-event collector. Cancel this scope to stop the collector.