105 {
107
108
109 for (fl::size i = 0; i <
mTasks.size();) {
111 auto impl =
t.get_impl();
112
113 if (!impl || impl->is_canceled()) {
114
116
117 } else {
118
119 bool should_run = impl->ready_to_run(current_time);
120
121 if (should_run) {
122
123 impl->set_last_run_time(current_time);
124
125
126 if (impl->has_then()) {
127 impl->execute_then();
128 } else {
130 }
131
132
134 if (is_recurring) {
135 ++i;
136 } else {
137
139
140 }
141 } else {
142 ++i;
143 }
144 }
145 }
146}
fl::vector< task > mTasks
void warn_no_then(int task_id, const fl::string &trace_label)
fl::u32 time()
Universal millisecond timer - returns milliseconds since system startup.