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

Method shutdown_all

components/scheduler/src/scheduler.rs:315–321  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

313 }
314
315 fn shutdown_all(&mut self) {
316 for worker in self.guilds.values_mut() {
317 if let Some(tx) = worker.tx.take() {
318 let _ = tx.send(GuildCommand::Shutdown);
319 }
320 }
321 }
322
323 fn try_unsuspend_guild(&mut self, guild_id: Id<GuildMarker>) -> bool {
324 if let Some(susp) = self.suspended_guilds.get(&guild_id) {

Callers 2

runMethod · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected