stop method
Stops the periodic timer and waits for any in-flight run.
Implementation
@override
Future<void> stop() async {
_isPaused = false;
_logger.info('Stopping Reprovider...');
_timer?.cancel();
_timer = null;
_nextRun = null;
final currentRun = _currentRun;
if (currentRun != null) {
try {
await currentRun;
} catch (e) {
_logger.debug('In-flight reprovide run finished with error: $e');
}
}
}