Skip to main content

interval

Function interval 

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

Create a recurring interval timer.

Returns a stream-like async function that yields at each tick. Used by the sync client for periodic keepalive and vector clock exchange.

  • Native: tokio::time::interval.
  • WASM: placeholder (will use gloo_timers::future::IntervalStream).