- Hands-On Reactive Programming with Python
- Romain Picard
- 172字
- 2021-06-24 18:25:22
Creating observables
Most of the code of a ReactiveX application is composed of operators that are chained together. However, at some point, the source of these events must be exposed as observables. ReactiveX provides many ways to create an observable from any source of data. Many factory operators are already available to convert virtually any source of data or event to an observable, and, should none of these operators be applicable to a situation, it is possible to create an operator from custom code logic.
All of the factory operators in RxPY are implemented as static methods of the Observable class. This means that they are invoked by using Observable.xxx, where xxx is the factory operator, and they return an observable. Also, almost all of these operators take a scheduler as an optional parameter. A scheduler allows you to control how the items are emitted on the observable. They are only mentioned in this chapter briefly, and they will be covered in detail in Chapter 5, Concurrency and Paralellism in RxPY.
- Mastering vRealize Operations Manager(Second Edition)
- Kali Linux滲透測試全流程詳解
- 嵌入式Linux系統開發:基于Yocto Project
- 新手易學:系統安裝與重裝
- Ubuntu Linux操作系統
- Alfresco 4 Enterprise Content Management Implementation
- Mobile First Design with HTML5 and CSS3
- 巧學活用Windows 7
- Learning Magento 2 Administration
- Mastering Reactive JavaScript
- iOS 8開發指南
- Office 365 User Guide
- Linux操作系統案例教程(第2版)
- Selenium Framework Design in Data-Driven Testing
- 不可不知的Windows技巧