cancelExecution method

bool cancelExecution(
  1. String executionId
)

Cooperatively cancels one admitted execution.

Implementation

bool cancelExecution(String executionId) {
  final execution = _executions[executionId];
  if (execution == null) return false;
  _cancelExecution(execution, TaskSkipReason.cancelledWhileQueued);
  return true;
}