MCPcopy Create free account
hub / github.com/Botloader/botloader / next_event_time

Method next_event_time

components/scheduler/src/interval_timer_manager.rs:210–224  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

208 }
209
210 pub fn next_event_time(&self) -> Option<DateTime<Utc>> {
211 let lowest_interval = self
212 .loaded_intervals
213 .iter()
214 .filter(|(name, _)| {
215 // filter timers already triggered that were waiting to hear back from being run
216 !self
217 .pending
218 .iter()
219 .any(|pending| name.identifies_timer(pending))
220 })
221 .min_by(|(_, a), (_, b)| a.next_run.cmp(&b.next_run));
222
223 lowest_interval.map(|(_, v)| v.next_run_with_cron_smear(self.cron_smear))
224 }
225}
226
227#[derive(Clone)]

Callers 2

next_actionMethod · 0.80
trigger_timersMethod · 0.80

Calls 2

identifies_timerMethod · 0.80

Tested by

no test coverage detected