These are chat archives for ReactiveX/RxJava
RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
But again, this depends on what your cursor is. If you can't get the next without reading the previous, this will likely not be possible. @ertanden
Flowable.create(emitter -> ... emitter.onNext(nextCursor)) .flatMap(cursor -> Flowable.fromCallable(() -> getData(cursor)) .retryWhen(...))