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

Function get_all_tasks_set

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

Source from the content-addressed store, hash-verified

2308 // Module Functions
2309
2310 fn get_all_tasks_set(vm: &VirtualMachine) -> PyResult<PyObjectRef> {
2311 // Use the module-level _scheduled_tasks WeakSet
2312 let asyncio_module = vm.import("_asyncio", 0)?;
2313 vm.get_attribute_opt(asyncio_module, vm.ctx.intern_str("_scheduled_tasks"))?
2314 .ok_or_else(|| vm.new_attribute_error("_scheduled_tasks not found"))
2315 }
2316
2317 fn get_eager_tasks_set(vm: &VirtualMachine) -> PyResult<PyObjectRef> {
2318 // Use the module-level _eager_tasks Set

Callers 3

all_tasksFunction · 0.85
_register_taskFunction · 0.85
_unregister_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