Skip to main content

first_pause_from

Function first_pause_from 

Source
pub fn first_pause_from(value: Option<&OsStr>) -> Duration
Expand description

What: The first pause for a value of the variable. Why: A missing, zero or malformed value falls back to the default, never to a tight loop.

In TS you’d write (pseudocode):

positiveSeconds(value) ?? FIRST_PAUSE_MS