- Hands-On Reactive Programming with Python
- Romain Picard
- 188字
- 2021-06-24 18:25:22
Exploring Observables and Observers
In this chapter, we will go into detail on observables: how to create them, how to subscribe to them, how to handle their errors, and how to use them with AsyncIO. In the first part of this chapter, we will describe all of the possible ways to create observables, from existing objects, iterable objects, or custom code logic. Each time a new observable is needed, one of these methods is best for the situation.
In the second part of this chapter, we will explain another important notion of ReactiveX: hot and cold observables. Knowing whether an observable is hot or cold is the key to using it correctly. The third part of this chapter will cover the different ways to listen to an observable and how to deal with errors. Finally, the last part will illustrate how observables can cohabit with AsyncIO and how to bridge futures and observables. This is a frequent requirement when writing drivers based on AsyncIO packages.
The following topics will be covered in this chapter:
- Creating observables
- Hot and cold observables
- Subscription and disposal
- Error handling
- Observables and AsyncIO
- Linux系統文件安全實戰全攻略
- 蘋果電腦玩全攻略 OS X 10.8 Mountain Lion
- 玩到極致 iPhone 4S完全攻略
- 嵌入式Linux驅動程序和系統開發實例精講
- Alfresco 4 Enterprise Content Management Implementation
- 嵌入式Linux應用開發菜鳥進階
- Windows Phone 8 Application Development Essentials
- 嵌入式系統原理及開發
- Windows 7案例教程
- Linux網絡配置與安全管理
- Windows Server 2008組網技術與實訓(第3版)
- Linux操作系統案例教程(第2版)
- 計算機應用基礎(Windows 7+Office 2010)
- Implementing Cloud Design Patterns for AWS(Second Edition)
- Hadoop Operations and Cluster Management Cookbook