pub fn use_interval<F>(hooks: &mut Hooks<'_>, seconds: f32, cb: F)
where F: Fn() + Sync + Send + 'static,
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.