Refactoring an Android App - #6 - RxJava 2 Composite Disposables
Dry Code
In this episode we continue working with RxJava 2 and introduce CompositeDisposable, a means to dispose of the listener/consumer objects (created to listen for the data being generated by our Singles).
We do this to prevent possible memory leaks when those objects are still lying around.
NOTE: We should be release some of the source code we are working on in these videos in the next episode through a Github repo.
Find more about the app we're using here (Snipit) here: https://play.google.com/store/apps/details?id=com.om.snipit
Exploring RxJava 2 for Android https://www.youtube.com/watch?v=htIXKI5gOQU&t=1162s
Common RxJava Mistakes https://www.youtube.com/watch?v=QdmkXL7XikQ
Thank you for watching! ... https://www.youtube.com/watch?v=-gcMO7CRmWA
687034261 Bytes