Open MilkBiscuit opened 6 years ago
In Using Disposable in RxJava
disposables.clear() is invoked in onStop()
disposables.clear()
onStop()
But in the comment and also Github disposables.clear() is invoked in onDestroy()
onDestroy()
BTW, there are several typos on the page Using Disposable in RxJava:
Let's say there is an observable which emits some values, but while emitting values, the user presses back button, then it must stop emitting values.
We will modify these soon.
In Using Disposable in RxJava
disposables.clear()
is invoked inonStop()
But in the comment and also Github
disposables.clear()
is invoked inonDestroy()
BTW, there are several typos on the page Using Disposable in RxJava:
Let's say there is an observable which emits some values, but while emitting values, the user presses back button, then it must stop emitting values.