Function gloo::render::request_animation_frame
source · pub fn request_animation_frame<F>(callback_once: F) -> AnimationFramewhere
F: FnOnce(f64) + 'static,
Available on crate feature
render
only.Expand description
Calls browser’s requestAnimationFrame
. It is cancelled when the handler is dropped.