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

Method exec

flow-rs/src/node/transform.rs:28–33  ·  view source on GitHub ↗
(&mut self, _: &Context)

Source from the content-addressed store, hash-verified

26 async fn initialize(&mut self, _: ResourceCollection) {}
27 async fn finalize(&mut self) {}
28 async fn exec(&mut self, _: &Context) -> Result<()> {
29 if let Ok(msg) = self.inp.recv_any().await {
30 self.out.send_any(msg).await.ok();
31 }
32 Ok(())
33 }
34}
35
36node_register!("Transform", Transform);

Callers

nothing calls this directly

Calls 2

recv_anyMethod · 0.80
send_anyMethod · 0.80

Tested by

no test coverage detected