Function gloo_render::request_animation_frame
source · [−]pub fn request_animation_frame<F>(callback_once: F) -> AnimationFrame where
F: FnOnce(f64) + 'static,
Expand description
Calls browser’s requestAnimationFrame
. It is cancelled when the handler is dropped.