Asynchronous Data Operators and Transformations

Through the previous chapters, we got a strong grip on the producer (Observable and Flowable) and consumer (Observer and Subscriber). While learning them, we used the map method a lot. As already mentioned, the map method is actually an Rx-Operator. There are also a number of operators in RxKotlin. I can guess you have an itching question in your mind from the very first time we used the map operator. Why do we call it an operator when it looks like a method? Well, in this chapter, we will first try to answer this question by defining RxKotlin operators. We will then take a deeper look at the various operators available and their implementations. With the help of operators, we will transform, ...

Get Reactive Programming in Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.