scheduleIteration method
Schedules a callback
to be executed while its return value is true
.
Implementation
@override
Disposable scheduleIteration(Predicate0 callback) {
final action = SchedulerActionCallback1((action) {
if (callback()) {
_scheduleAt(now, action);
} else {
action.dispose();
}
});
_scheduleAt(now, action);
return action;
}