stop method

void stop()

Stops the scheduler.

Implementation

void stop() {
  _periodicTimer?.cancel();
  _periodicTimer = null;
  _scheduledTimer?.cancel();
  _scheduledTimer = null;
  _idleSubscription?.cancel();
  _idleSubscription = null;
  _backgroundSubscription?.cancel();
  _backgroundSubscription = null;
  _chargingSubscription?.cancel();
  _chargingSubscription = null;
  _connectivitySubscription?.cancel();
  _connectivitySubscription = null;
  _isRunning = false;
  _log.info('Eviction scheduler stopped');
}