Skip to main content

poll_interval_secs

Function poll_interval_secs 

Source
pub(crate) fn poll_interval_secs(v: f64) -> Result<Duration>
Expand description

Validated poll interval from float seconds. Rejects NaN plus infinite plus non-positive plus over one hour, so a bad flag fails closed before any timer starts with no panic.