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

Function get_eager_tasks_set

crates/stdlib/src/_asyncio.rs:2317–2322  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2315 }
2316
2317 fn get_eager_tasks_set(vm: &VirtualMachine) -> PyResult<PyObjectRef> {
2318 // Use the module-level _eager_tasks Set
2319 let asyncio_module = vm.import("_asyncio", 0)?;
2320 vm.get_attribute_opt(asyncio_module, vm.ctx.intern_str("_eager_tasks"))?
2321 .ok_or_else(|| vm.new_attribute_error("_eager_tasks not found"))
2322 }
2323
2324 fn get_current_tasks_dict(vm: &VirtualMachine) -> PyResult<PyObjectRef> {
2325 // Use the module-level _current_tasks Dict

Callers 2

_register_eager_taskFunction · 0.85
_unregister_eager_taskFunction · 0.85

Calls 4

ok_or_elseMethod · 0.80
get_attribute_optMethod · 0.80
intern_strMethod · 0.80
importMethod · 0.45

Tested by

no test coverage detected