pub fn timer<K>(
scheduler: &Scheduler<K>,
entries: &Entries,
) -> Subscription<Timestamp>Available on crate feature
calendar only.Expand description
Ticks every TICK with the current time while scheduler has a
timed trigger and there are entries, or something is snoozed. Feed
each tick to Scheduler::poll.
It keeps ticking with nothing due, so the scheduler always knows roughly what time it is and an entry added later is judged against now, not against the last time something happened to be pending.