delay
Delays the emission of items from the source Observable by a given timeout or until a given Date.
Parameters
delay |
The delay duration in milliseconds (a |
scheduler |
Optional. Default is The |
Returns
MonoTypeOperatorFunction<T>
: An Observable that delays the emissions of the source
Observable by the specified timeout or Date.
Description
Time shifts each item by some specified amount of milliseconds.
If the delay argument is a Number, this operator time shifts the source Observable by that amount of time expressed in milliseconds. The relative time intervals between the values are preserved.
If the delay argument is a Date, this operator time shifts the start of the Observable execution until the given date occurs.
Examples
Delay each click by one second
Delay all clicks until a future date happens