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

Method stop

flow-rs/src/graph/mod.rs:84–86  ·  view source on GitHub ↗

Stop the graph, it is equivalent to drop all inputs of the graph

(mut self)

Source from the content-addressed store, hash-verified

82 }
83 /// Stop the graph, it is equivalent to drop all inputs of the graph
84 pub fn stop(mut self) {
85 self.graph.close()
86 }
87 /// Run the graph, and return a `JoinHandle`, which can be cancel or wait
88 pub fn start(&mut self) -> JoinHandle<Result<()>> {
89 let handle = self

Callers 2

waitMethod · 0.80
closeMethod · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected