use crate::*;
/// Requests the browser to execute a callback before the next repaint.
///
/// # Arguments
///
/// - `FnOnce() + 'static`: A closure to invoke before the next repaint.
///
/// # Panics
///
/// Panics if no global `window` exists or if the animation frame request fails.