What happens to the Observable if the app gets suspended?
Marty Miller

I didn’t include handling the subscriptions part. Ideally you would clear()/unsubscribe() the subscription on onPause() or onStop() to avoid memory leaks. You can use a CompositeSubscription if you are dealing with multiple subscriptions.

Like what you read? Give Rahul RV a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.