RxJava: Clean way of prefetching data and use later

Elye
Elye
Jul 27, 2017 · 4 min read

Just like preparing lunch box, we would like to fetch data as soon as possible and not only when we need it. When the UI is ready, we could use it instantly. Conversely, if the UI becomes ready first while the data fetching is still not ready, we would want the UI to show loading state, then when immediately upon the data is fetched, we show it.

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Elye

Written by

Elye

Learning and Sharing Android and iOS Development

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade