MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / reset

Function reset

flow-rs/src/debug/server.rs:84–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84async fn reset() {
85 FeatureCommand::registry_global().for_each(|cmd| {
86 (cmd.disable)();
87 });
88 PORT.0
89 .send(ProtocolMessage {
90 ty: "__CLOSED__".to_owned(),
91 others: Default::default(),
92 })
93 .await
94 .unwrap();
95 CONNECTED.store(false, Ordering::SeqCst);
96}
97
98async fn dowith_event(_: EventMessage) -> Result<()> {
99 unimplemented!()

Callers 1

listenMethod · 0.85

Calls 3

for_eachMethod · 0.80
storeMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected