(&mut self, py: Python)
| 36 | #[pymethods] |
| 37 | impl PyReceiver { |
| 38 | fn recv(&mut self, py: Python) -> PyObject { |
| 39 | match with_context(py, || wait(self.imp.recv::<PyObject>())) { |
| 40 | Ok(msg) => Py::new(py, PyEnvelope { imp: Some(msg) }) |
| 41 | .unwrap() |
| 42 | .to_object(py), |
| 43 | _ => py.None(), |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | fn batch_recv(&self, py: Python, n: usize, dur: u64) -> (Vec<PyObject>, bool) { |
| 48 | let convert = |envelope| { |
nothing calls this directly
no test coverage detected