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

Function _register_eager_task

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

Source from the content-addressed store, hash-verified

2462
2463 #[pyfunction]
2464 fn _register_eager_task(task: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
2465 let eager_tasks_set = get_eager_tasks_set(vm)?;
2466 vm.call_method(&eager_tasks_set, "add", (task,))?;
2467 Ok(())
2468 }
2469
2470 #[pyfunction]
2471 fn _unregister_eager_task(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