(&mut self, py: Python, result: PyObject)
| 74 | #[pymethods] |
| 75 | impl 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] |