Created
September 24, 2019 15:07
-
-
Save 2hamed/66b135dcd95df099dd2f32701e05a0c1 to your computer and use it in GitHub Desktop.
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
Flowable.interval(10, TimeUnit.SECONDS) | |
.flatMap {api.getJson()} | |
.subscribe({ | |
// do something with response | |
}, { | |
// log the error | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment