Sample example of RxJava2
-
This sample contains two long running service (simulated by Thread.sleep)
a) VideoService
b) RatingService
-
getAllRatings and getAllVideos runs asynchronously in two different thread.
-
The main thread zip both rating and videos converts to VideoRating and return to caller.