MCPcopy Index your code
hub / github.com/RustPython/RustPython / _unregister_eager_task

Function _unregister_eager_task

crates/stdlib/src/_asyncio.rs:2471–2475  ·  view source on GitHub ↗
(task: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2469
2470 #[pyfunction]
2471 fn _unregister_eager_task(task: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
2472 let eager_tasks_set = get_eager_tasks_set(vm)?;
2473 vm.call_method(&eager_tasks_set, "discard", (task,))?;
2474 Ok(())
2475 }
2476
2477 #[pyfunction]
2478 fn _enter_task(loop_: PyObjectRef, task: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {

Callers 1

task_eager_startFunction · 0.70

Calls 2

get_eager_tasks_setFunction · 0.85
call_methodMethod · 0.45

Tested by

no test coverage detected