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

Function _get_running_loop

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

Source from the content-addressed store, hash-verified

2330
2331 #[pyfunction]
2332 fn _get_running_loop(vm: &VirtualMachine) -> PyObjectRef {
2333 vm.asyncio_running_loop
2334 .borrow()
2335 .clone()
2336 .unwrap_or_else(|| vm.ctx.none())
2337 }
2338
2339 #[pyfunction]
2340 fn _set_running_loop(loop_: OptionalOption<PyObjectRef>, vm: &VirtualMachine) {

Callers 2

get_running_loopFunction · 0.90
get_event_loopFunction · 0.90

Calls 3

noneMethod · 0.80
cloneMethod · 0.45
borrowMethod · 0.45

Tested by

no test coverage detected