Created
January 31, 2020 06:36
-
-
Save vamjakuldip/df99a37b1f2a8a53fa7caa9534592561 to your computer and use it in GitHub Desktop.
RxJava, Observable With Delay Item example.
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 characters
Observable.fromIterable<Int>(Arrays.asList(1, 2, 3)) | |
.zipWith(Observable.interval(200, TimeUnit.MILLISECONDS), BiFunction { item:Int, _:Long -> item }) | |
.subscribe { integers: Int -> Log.d(TAG, "item $integers") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment