canTriggerFailure method

  1. @mustCallSuper
Future<bool> canTriggerFailure()

Implementation

@mustCallSuper
Future<bool> canTriggerFailure() async {
  return _lock.synchronized(() {
    if (_shouldAttemptReconnection && !_isReconnecting) {
      _isReconnecting = true;
      return true;
    }

    return false;
  });
}