cancel method

bool cancel(
  1. int tag
)

Cancels a retained replay and reports whether one existed.

Implementation

bool cancel(int tag) {
  _validateTag(tag);
  final existed = _occupiedTags.remove(tag);
  _eligibleTags.remove(tag);
  _backoffRemaining[tag] = 0;
  return existed;
}