(vm: &VirtualMachine)
| 2322 | } |
| 2323 | |
| 2324 | fn get_current_tasks_dict(vm: &VirtualMachine) -> PyResult<PyObjectRef> { |
| 2325 | // Use the module-level _current_tasks Dict |
| 2326 | let asyncio_module = vm.import("_asyncio", 0)?; |
| 2327 | vm.get_attribute_opt(asyncio_module, vm.ctx.intern_str("_current_tasks"))? |
| 2328 | .ok_or_else(|| vm.new_attribute_error("_current_tasks not found")) |
| 2329 | } |
| 2330 | |
| 2331 | #[pyfunction] |
| 2332 | fn _get_running_loop(vm: &VirtualMachine) -> PyObjectRef { |
no test coverage detected