enum Missed
What every does with ticks missed because the body was slow (§17.4).
Example:
use std.time { every, Missed }
fn heartbeat() io, time {
// a slow body does not make the ticks pile up: missed ticks are dropped
every(1s, .Skip) { print("tick") }
}pub(api) enum MissedSince. 1.0.0-beta
Variants
Skip | Drop the ticks that were missed. |
CatchUp | Run the missed ticks back to back. |
Defined in: std/time/time.oxl:269