isInBackoff method

bool isInBackoff(
  1. String name
)

Whether name is benched right now.

Implementation

bool isInBackoff(String name) {
  final until = _backoffUntil[name];
  if (until == null) return false;
  if (_now().isBefore(until)) return true;
  _backoffUntil.remove(name);
  return false;
}