- 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.
- 操作系統實用教程(Linux版)
- Mastering Distributed Tracing
- Haskell Financial Data Modeling and Predictive Analytics
- Linux性能優化
- Windows Server 2012網絡操作系統企業應用案例詳解
- Instant Optimizing Embedded Systems using Busybox
- 細說Linux基礎知識
- Vim 8文本處理實戰
- Building Telephony Systems With Asterisk
- 從實踐中學習Windows滲透測試
- Ubuntu Linux操作系統實用教程
- Linux內核API完全參考手冊(第2版)
- iOS 10快速開發:18天零基礎開發一個商業應用
- Java EE 7 Developer Handbook
- Angular權威教程