Schedules a turn timeout for the current acting player based on game configuration.
Computes a deadline timestamp, increments the game’s timerSeq, and persists a TurnTimer record. A delayed EventBridge schedule is created to invoke the timeout handler at the deadline.
Timers are logically invalidated by design: when a new turn timer is scheduled, the timerSeq is incremented, causing any previously scheduled timeout events with an older sequence to be ignored when fired. This ensures stale timers cannot affect current game state.
Schedules a turn timeout for the current acting player based on game configuration.
Computes a deadline timestamp, increments the game’s timerSeq, and persists a TurnTimer record. A delayed EventBridge schedule is created to invoke the timeout handler at the deadline.
Timers are logically invalidated by design: when a new turn timer is scheduled, the timerSeq is incremented, causing any previously scheduled timeout events with an older sequence to be ignored when fired. This ensures stale timers cannot affect current game state.