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

Method timer_ack

components/scheduler/src/interval_timer_manager.rs:86–95  ·  view source on GitHub ↗
(&mut self, timer_id: &TimerId)

Source from the content-addressed store, hash-verified

84 }
85
86 pub async fn timer_ack(&mut self, timer_id: &TimerId) {
87 if let Some(index) = self
88 .pending
89 .iter()
90 .position(|v| timer_id.identifies_timer(v))
91 {
92 let timer = self.pending.swap_remove(index);
93 self.update_last_run(Utc::now(), timer).await;
94 }
95 }
96
97 pub async fn script_started(&mut self, timers: Vec<IntervalTimerContrib>) {
98 if timers.is_empty() {

Callers 1

handle_session_eventsMethod · 0.80

Calls 2

identifies_timerMethod · 0.80
update_last_runMethod · 0.80

Tested by

no test coverage detected