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

Function _register_task

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

Source from the content-addressed store, hash-verified

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<()> {

Callers 2

py_initMethod · 0.70
task_eager_startFunction · 0.70

Calls 2

get_all_tasks_setFunction · 0.85
call_methodMethod · 0.45

Tested by

no test coverage detected