schedule method

void schedule()

Implementation

void schedule() {
  Debug.print("Scheduler: Scheduling pending requests");
  if (!_isProcessing) {
    _retryTimer = Timer(
      Duration(
        milliseconds: min(
          _maxDelayInMs,
          _thresholdInMs * pow(2, _retryCount).toInt(),
        ),
      ),
      () => _sendRetryRequests(),
    );
    Debug.print(
      "Scheduler: Started retry timer with retryCount: $_retryCount",
    );
  }
}