Observable.interval () with initialDelay
1 answer
RxJava has 3 operators related to synchronization (+1 overload of each):
-
timer(long delay, TimeUnit unit [, Scheduler scheduler])
emits one 0L after delay, -
timer(long initialDelay, long period, TimeUnit unit [, Scheduler scheduler])
emits 0L after an initial delay and continuously increasing values thereafter, -
interval(long interval, TimeUnit unit [, Scheduler scheduler])
emits 0L after interval and 1L, 2L, etc. periodically. This is equivalenttimer(interval, interval, unit)
.
+3
source to share