haveAvailableHandler<T> method

  1. @override
bool haveAvailableHandler<T>(
  1. EventSelector<T> selector
)
inherited

Whether a handler for the selector could accept a request now.

Implementation

@override
bool haveAvailableHandler<T>(EventSelector<T> selector) {
  final tier = _resolveTier(selector);
  return tier != null &&
      tier.candidates
          .any((candidate) => candidate.subscription.hasRequestCapacity);
}