IntervalExtension<T> extension

Extends the Stream class with the ability to emit each item after a given duration.

on

Methods

interval(Duration duration) Stream<T>
Creates a Stream that emits each item in the Stream after a given duration.