Created
November 5, 2015 07:33
-
-
Save NiteshKant/0cd350faee7d82b31913 to your computer and use it in GitHub Desktop.
Revisions
-
NiteshKant created this gist
Nov 5, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import rx.Observable; public class Pager { public static void main(String[] args) { Observable.range(1, 1000) .window(10) .doOnNext(nextBatch -> System.out.println("Next page.")) .flatMap(nums -> nums, 1) .forEach(System.out::println); } }