Function ambient_api::prelude::ambient_element::use_interval
source · pub fn use_interval<F>(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.