stop method
Stop the scheduler.
This returns a Future that is completed when the scheduler has finished any on-going iterations. This will not abort an ongoing task, but it will stop further iterations of the task.
Implementation
Future<void> stop() async {
if (!_stopping.isCompleted) {
_stopping.complete();
}
_log.fine(() => 'NeatPeriodicTaskScheduler "$_name" STOPPING');
return await _stopped.future;
}