Skip to main content

next_deadline

Function next_deadline 

Source
pub fn next_deadline(input: &NotifyInput, now: Timestamp) -> Option<Timestamp>
Expand description

The earliest instant in pre_arm_deadlines(), or None when nothing is to be armed.

A convenience for a caller that holds a single timer — a desktop scheduler, a CLI, a status line. A client that pre-arms per class wants pre_arm_deadlines(): collapsing the map to its minimum discards the later class’s timer, which on a device the app never runs on again loses that alert.