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

Function _set_running_loop

crates/stdlib/src/_asyncio.rs:2340–2342  ·  view source on GitHub ↗
(loop_: OptionalOption<PyObjectRef>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2338
2339 #[pyfunction]
2340 fn _set_running_loop(loop_: OptionalOption<PyObjectRef>, vm: &VirtualMachine) {
2341 *vm.asyncio_running_loop.borrow_mut() = loop_.flatten();
2342 }
2343
2344 #[pyfunction]
2345 fn get_running_loop(vm: &VirtualMachine) -> PyResult {

Callers 1

on_forkFunction · 0.90

Calls 2

borrow_mutMethod · 0.80
flattenMethod · 0.45

Tested by

no test coverage detected