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

Method wake

flow-rs/src/loader/python/utils.rs:76–80  ·  view source on GitHub ↗
(&mut self, py: Python, result: PyObject)

Source from the content-addressed store, hash-verified

74#[pymethods]
75impl PyWaker {
76 fn wake(&mut self, py: Python, result: PyObject) {
77 if let Some(chan) = std::mem::take(&mut self.chan) {
78 let _ = chan.send(result.clone_ref(py)).is_ok();
79 }
80 }
81}
82
83#[pyfunction]

Callers 1

rndFunction · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected