interruptActive method

String? interruptActive(
  1. String reason
)

Abort the NEWEST submission — running, or queued behind one still unwinding — with a wire failure_reason (RN / Android interruptActive, which claim the run at dispatch). Returns its id, or null when nothing is live. Remembered cancels are left alone: a touch means "stop what you are doing", not "refuse the next mission".

Implementation

String? interruptActive(String reason) {
  final token = _newestToken;
  if (token == null || token.isCancelled) return null;
  token.cancel(reason);
  return _newestMissionId;
}