Last active
August 6, 2019 16:40
-
-
Save SeongUgJung/2c7e22c7e40251e8b0b3fb3441845bd0 to your computer and use it in GitHub Desktop.
lifecycle dispose
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.interval(100) // every 100 ms | |
.flatMap { api.data() } // network request | |
.compose(until(PAUSE)) // dispose when onPause | |
.subscribe() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment