Chapter 8. RxCpp – the Key Elements
In the previous chapter, we were introduced to the RxCpp library and its programming model. We wrote some programs to understand the workings of the library. We also covered the essential elements of the RxCpp library. In this chapter, we will cover, in some depth, the key elements of the RxCpp library in particular and the reactive programming model in general, which include the following:
- Observables
- Observers and their variants (subscribers)
- Subjects
- Schedulers
- Operators
In effect, the key aspects of reactive programming are as follows:
- Observables are streams to which Observers can subscribe for notifications
- A Subject is a combination of Observables and Observers
schedulers
execute the action associated with Operators and help the flow of data from Observables to Observers- Operators are functions that take an Observable and emit another Observable