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

Method run

components/scheduler/src/guild_handler.rs:166–176  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

164 }
165
166 async fn run(mut self) {
167 self.setup().await;
168
169 while let Some(next) = self.next_event().await {
170 if !self.handle_next_action(next).await {
171 break;
172 }
173 }
174
175 self.shutdown().await;
176 }
177
178 #[instrument(skip(self), fields(guild_id = self.guild_id.get(), action = action.span_info()))]
179 pub(crate) async fn handle_next_action(&mut self, action: NextGuildAction) -> bool {

Callers 1

new_runMethod · 0.45

Calls 4

setupMethod · 0.80
next_eventMethod · 0.80
handle_next_actionMethod · 0.80
shutdownMethod · 0.80

Tested by

no test coverage detected