(py: Python, task: PyObject)
| 16 | |
| 17 | #[pyfunction] |
| 18 | fn block_on(py: Python, task: PyObject) { |
| 19 | py.allow_threads(move || { |
| 20 | flow_rs::rt::task::block_on(flow_rs::rt::task::spawn_local(stackful(move || { |
| 21 | Python::with_gil(move |py| task.call0(py).unwrap()) |
| 22 | }))); |
| 23 | }) |
| 24 | } |
| 25 | |
| 26 | #[pyfunction] |
| 27 | fn yield_now(py: Python) { |
no outgoing calls
no test coverage detected