(vm: &VirtualMachine)
| 2343 | |
| 2344 | #[pyfunction] |
| 2345 | fn get_running_loop(vm: &VirtualMachine) -> PyResult { |
| 2346 | vm.asyncio_running_loop |
| 2347 | .borrow() |
| 2348 | .clone() |
| 2349 | .ok_or_else(|| vm.new_runtime_error("no running event loop")) |
| 2350 | } |
| 2351 | |
| 2352 | #[pyfunction] |
| 2353 | fn get_event_loop(vm: &VirtualMachine) -> PyResult { |
no test coverage detected