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

Method remove_pending

components/scheduler/src/interval_timer_manager.rs:125–129  ·  view source on GitHub ↗
(&mut self, id: TimerId)

Source from the content-addressed store, hash-verified

123 }
124
125 pub fn remove_pending(&mut self, id: TimerId) {
126 if let Some(index) = self.pending.iter().position(|v| id.identifies_timer(v)) {
127 self.pending.swap_remove(index);
128 }
129 }
130
131 fn get_triggered_timers(&self, now: DateTime<Utc>) -> Vec<WrappedIntervalTimer> {
132 self.loaded_intervals

Callers 1

handle_session_eventsMethod · 0.45

Calls 1

identifies_timerMethod · 0.80

Tested by

no test coverage detected