// the find
rengwuxian/RxJavaSamples
RxJava 2 和 Retrofit 结合使用的几个最常见使用方式举例
A small Android sample project showing six common RxJava 2 + Retrofit patterns: basic requests, map, zip, one-shot token exchange via flatMap, auto-refreshing tokens via retryWhen, and response caching with BehaviorSubject. It's aimed at Android devs learning to wire Retrofit into RxJava rather than at anyone looking for a library to depend on.
Each pattern is isolated into its own Fragment/module (token_4, token_advanced_5, cache_6, etc.) so you can jump straight to the one you need without wading through the others. The token refresh examples are the most useful part — flatMap for chaining a token fetch into the real request, and retryWhen for transparently retrying after a 401, are exactly the two problems people actually get stuck on. It ships a built APK release so you can see the behavior running without touching Gradle at all.
Last pushed in January 2018 — pre-AndroidX, old Retrofit/OkHttp versions, and it won't build cleanly against current AGP/Gradle without migration work first. There are no tests anywhere in the tree, so these are illustrative snippets, not verified reference code. The README is Chinese-only with no English translation, which caps the audience. Eight years stale means no RxJava 3 or Kotlin Flow equivalent, which is where most of this ecosystem has since moved.