tick method
Runs whatever is due.
Safe to call as often as the caller likes: a task is keyed to the occurrence it last ran for, so ticking every few seconds within one minute fires it once rather than a dozen times.
Implementation
Future<void> tick() async {
final DateTime now = _clock();
await Future.wait(<Future<void>>[
for (final _DVTask task in _tasks.values.toList()) _runIfDue(task, now),
]);
}