debounce_action

Function debounce_action 

Source
pub fn debounce_action<T, F>(
    signal: impl SignalWith<T> + 'static,
    duration: Duration,
    action: F,
)
where T: Hash + 'static, F: Fn() + Clone + 'static,
Expand description

Debounce an action.

This tracks a signal and checks if the inner value has changed by checking it’s hash and will run the action only once an uninterrupted duration has passed.