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

Function _unregister_task

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

Source from the content-addressed store, hash-verified

2455
2456 #[pyfunction]
2457 fn _unregister_task(task: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
2458 let all_tasks_set = get_all_tasks_set(vm)?;
2459 vm.call_method(&all_tasks_set, "discard", (task,))?;
2460 Ok(())
2461 }
2462
2463 #[pyfunction]
2464 fn _register_eager_task(task: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {

Callers 2

task_step_handle_resultFunction · 0.70

Calls 2

get_all_tasks_setFunction · 0.85
call_methodMethod · 0.45

Tested by

no test coverage detected