Skip to main content

should_refire

Function should_refire 

Source
pub fn should_refire(
    last: Option<Instant>,
    now: Instant,
    min_gap: Duration,
) -> bool
Available on crate feature cli-dev only.
Expand description

Leading-edge debounce: fire only if at least min_gap has elapsed since the last fire. Pure.