How to use schedulers – subscribeOn and observeOn operators

Now that we have gained some grip on what schedulers are, how many types of schedulers are available, and how to create a scheduler instance, we will focus on how to use schedulers.

There are basically two operators that help us implement schedulers. Up until now, in this chapter, we've used the subscribeOn operator in all the examples with a scheduler; however, there's another operator—observeOn. We will now focus on these two operators, learning how they work, and how they differ.

Let's start with the subscribeOn operator.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.75.217