Skip to main content

interval

Function interval 

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

Create a periodic timer that fires every period.

The first tick fires after one full period (not immediately).