Skip to main content

interval

Function interval 

Source
pub fn interval(timer: &TimerHandle, period: Duration) -> TimerInterval
Expand description

Build a periodic ticker firing every period, backed by timer — the runtime-free mirror of tokio::time::interval.