pub fn use_interval<F: Fn() + Sync + Send + 'static>(
    hooks: &mut Hooks<'_>,
    seconds: f32,
    cb: F
)
Expand description

Run cb every seconds seconds.

If your cb depends on some state, consider using use_interval_deps instead. This function will capture the state at the time it is called, and will not update if the state changes.