DelayExtension<T> extension

Extends the Stream class with the ability to delay events being emitted

on

Methods

delay(Duration duration) Stream<T>

Available on Stream<T>, provided by the DelayExtension extension

The Delay operator modifies its source Stream by pausing for a particular increment of time (that you specify) before emitting each of the source Stream’s items. This has the effect of shifting the entire sequence of items emitted by the Stream forward in time by that specified increment.