RxJavaSamples
Examples of some of the most common usages of RxJava 2 and Retrofit
Examples of some of the most common uses of RxJava 2 with Retrofit. For the interface that needs to request the token first, then use flatMap() to connect the token request and the actual data request coherently, without having to write a nested Callback structure. For non-disposable tokens (tokens that can be reused), after obtaining the token, save it for repeated use, and use retryWhen() to automatically re-acquire the token when it expires, making the process of token acquisition completely...