pub fn interval(duration: Duration) -> impl Stream<Item = ()> + Unpin
Expand description

Creates a stream that returns a new value every duration.