(&mut self, timer_id: &TimerId)
| 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() { |
no test coverage detected