(task: PyObjectRef, vm: &VirtualMachine)
| 2448 | |
| 2449 | #[pyfunction] |
| 2450 | fn _register_task(task: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { |
| 2451 | let all_tasks_set = get_all_tasks_set(vm)?; |
| 2452 | vm.call_method(&all_tasks_set, "add", (task,))?; |
| 2453 | Ok(()) |
| 2454 | } |
| 2455 | |
| 2456 | #[pyfunction] |
| 2457 | fn _unregister_task(task: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { |
no test coverage detected