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

Method send

flow-rs/src/loader/python/channel.rs:30–33  ·  view source on GitHub ↗
(&mut self, py: Python, envelope: Py<PyEnvelope>)

Source from the content-addressed store, hash-verified

28#[pymethods]
29impl PySender {
30 fn send(&mut self, py: Python, envelope: Py<PyEnvelope>) {
31 let envelope = envelope.borrow_mut(py).imp.take().expect("use after move");
32 with_context(py, || wait(self.imp.send(envelope)).ok());
33 }
34}
35
36#[pymethods]

Callers 1

wakeMethod · 0.45

Calls 2

with_contextFunction · 0.85
takeMethod · 0.80

Tested by

no test coverage detected