MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / stop

Method stop

tests/dashboard_api_test/dashboard_api_support.rs:59–66  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

57
58impl DashboardServer {
59 pub(crate) fn stop(&mut self) {
60 if let Some(shutdown) = self.shutdown.take() {
61 let _ = shutdown.send(());
62 }
63 if let Some(thread) = self.thread.take() {
64 let _ = thread.join();
65 }
66 }
67}
68
69impl Drop for DashboardServer {

Calls 2

sendMethod · 0.80
takeMethod · 0.45