Skip to main content

clamp_wakeup_delay

Function clamp_wakeup_delay 

Source
pub fn clamp_wakeup_delay(after: Duration) -> Duration
Expand description

Raise after to MIN_WAKEUP_DELAY if it is below it.

Pure, so host-side cargo test can exercise it. Used by [prepare_wakeup], which is where the boundary actually sits: everything up to and including the conversion to milliseconds runs on both targets, and only the extern "C" call beneath it is cfg(target_family = "wasm") and therefore never executed by CI — the wasm32 jobs build and lint but run nothing.