Skip to main content

interval

Function interval 

Source
pub fn interval(period: Duration) -> Interval
Expand description

Create a recurring interval timer that ticks every period.

  • Native: wraps tokio::time::interval; first tick is immediate.
  • WASM: backed by gloo_timers; first tick waits one period.