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

Method start

flow-rs/src/sandbox.rs:146–161  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

144 }
145
146 pub fn start(mut self) -> JoinHandle<Result<()>> {
147 let local_key = self.local_key;
148 let ctx = context("Sandbox".to_owned(), self.ty.clone(), local_key);
149 crate::rt::task::spawn(async move {
150 futures_util::try_join!(
151 self.actor.start(
152 ctx.clone(),
153 UniqueResourceCollection::new(ctx.local_key, ctx.id, &Default::default())
154 .take_into_arc()
155 ),
156 self.broker.run()
157 )?;
158 crate::registry::finalize(local_key);
159 Ok(())
160 })
161 }
162}
163
164fn graph_register(local_key: u64, ty: &str, port_name: &str) {

Callers 7

test_basisFunction · 0.45
test_basisFunction · 0.45
test_emptyFunction · 0.45
test_unusedFunction · 0.45
test_isolatedFunction · 0.45
test_isolated_in_globalFunction · 0.45
mainFunction · 0.45

Calls 3

contextFunction · 0.85
finalizeFunction · 0.85
cloneMethod · 0.45

Tested by 6

test_basisFunction · 0.36
test_basisFunction · 0.36
test_emptyFunction · 0.36
test_unusedFunction · 0.36
test_isolatedFunction · 0.36
test_isolated_in_globalFunction · 0.36