A plugin hook can now cancel the running turn, once every two seconds and fifty times per session.
What's wrong with this entry?
A plugin hook can now stop the turn that is currently running by calling $.turn.abort({ turnId }). Each plugin is limited to one abort every 2000ms, and the whole session is capped at 50 aborts.
- The call is refused when no turn is running, when the id given is not the running turn, and when that turn is already ending.
- The two ceilings are named
TURN_ABORT_SESSION_COUNT(50) andTURN_ABORT_MIN_INTERVAL_MS(2000). - A successful abort writes a line into the plugin UI log, so a turn cut short by a plugin is attributable.
- Part of the host operation table rather than a separately flagged feature.
TURN_ABORT_MIN_INTERVAL_MS
Strings lifted out of the shipped bundle, so the claim above can be checked against them.