(&mut self, py: Python)
| 59 | #[pymethods] |
| 60 | impl PyFuture { |
| 61 | fn wait(&mut self, py: Python) -> PyObject { |
| 62 | if let Some(chan) = std::mem::take(&mut self.chan) { |
| 63 | with_context(py, || wait(chan)).unwrap() |
| 64 | } else { |
| 65 | py.None() |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | fn cancel(&mut self) { |
| 70 | self.chan = None; |
nothing calls this directly
no test coverage detected