()
| 82 | |
| 83 | #[pyfunction] |
| 84 | fn create_future() -> (PyFuture, PyWaker) { |
| 85 | let (s, r) = oneshot::channel(); |
| 86 | (PyFuture { chan: Some(r) }, PyWaker { chan: Some(s) }) |
| 87 | } |
| 88 | |
| 89 | pub fn utils_register(module: &PyModule) -> PyResult<()> { |
| 90 | module.add_function(wrap_pyfunction!(yield_now, module)?)?; |