Last active
October 24, 2018 22:43
-
-
Save truedem/2f2fa064d98a1a1c89d4b135ce1bb344 to your computer and use it in GitHub Desktop.
Types to use in RxJava for Retrofit
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
| // One shot operation that returns a value (ie GET, shared prefs)? Single. | |
| // One shot operation that returns nothing? (POST) Completable. | |
| // One shot operation that might return null (ie fetch from a DB)? Maybe. | |
| // An operation that returns multiple objects over time (ie websockets or a list)? Observable. | |
| // use Kotlin coroutines? Deferred<T> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment