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

Function cancel_animation_frame

crates/wasm/src/browser_module.rs:150–156  ·  view source on GitHub ↗
(id: i32, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

148
149 #[pyfunction]
150 fn cancel_animation_frame(id: i32, vm: &VirtualMachine) -> PyResult<()> {
151 window()
152 .cancel_animation_frame(id)
153 .map_err(|err| convert::js_py_typeerror(vm, err))?;
154
155 Ok(())
156 }
157
158 #[pyattr]
159 #[pyclass(module = "browser", name)]

Callers

nothing calls this directly

Calls 2

windowFunction · 0.85
js_py_typeerrorFunction · 0.85

Tested by

no test coverage detected