I\'m struggling to implement something I assumed would be fairly simple in Rx.
I have a list of items, and I want to have each item emitted with a delay.
It
Just sharing a simple approach to emit each item in a collection with an interval:
Observable.just(1,2,3,4,5) .zipWith(Observable.interval(500, TimeUnit.MILLISECONDS), (item, interval) -> item) .subscribe(System.out::println);
Each item will be emitted every 500 milliseconds