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

Method clone

flow-rs/src/registry.rs:96–103  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

94 ID: Clone,
95{
96 fn clone(&self) -> Self {
97 let inner = self.inner.read().unwrap();
98 Registry {
99 inner: RwLock::new(RegistryInner {
100 elems: inner.elems.clone(),
101 }),
102 }
103 }
104}
105
106type GlobalCallback = RwLock<Vec<Box<dyn Fn(u64) + Send + Sync>>>;

Callers 7

startMethod · 0.45
graph_registerFunction · 0.45
load_implFunction · 0.45
subscribeMethod · 0.45
runMethod · 0.45
publishMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected