delay method

Single<T> delay(
  1. Duration duration
)

The Delay operator modifies its source Single 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 Single forward in time by that specified increment.

Marble

source: ---------a|
delay:           ----
result: -------------a|

source: ---------a|
delay:           -----------
result: --------------------a|

source: ---------x|
result: ---------x|

Interactive marble diagram

Implementation

Single<T> delay(Duration duration) =>
    forwardSingleWithSink(() => _DelaySingleSink(duration));