reactiveX沉思(草稿)
一、第一性原理
将异步的io、事件解释为observable。并借用observer的一些类概念进行处理。
ReactiveX is a library for composing asynchronous and event-based programs by using observable sequences.
It extends the observer pattern to support sequences of data and/or events and adds operators that allow you to compose sequences together declaratively while abstracting away concerns about things like low-level threading, synchronization, thread-safety, concurrent data structures, and non-blocking I/O.
一、基本要素
二、范式概念
Better codebases
Functional
Avoid intricate stateful programs, using clean input/output functions over observable streams.
Less is more
ReactiveX's operators often reduce what was once an elaborate challenge into a few lines of code.
Async error handling
Traditional try/catch is powerless for errors in asynchronous computations, but ReactiveX is equipped with proper mechanisms for handling errors.
Concurrency made easy
Observables and Schedulers in ReactiveX allow the programmer to abstract away low-level threading, synchronization, and concurrency issues.
三、解释系统
最新文章
- IntelliJ IDEA使用(二):tomcat和jetty配置
- 影响前端的Chrome浏览器36
- sql-分组排序
- 前端开发面试题JS
- 西安.NET俱乐部群 推广代码
- Spring AOP配置文件
- mac远程连接 win8
- 产生冠军(set,map,拓扑结构三种方法)
- 玩转FFmpeg的7个小技巧
- PAT1100:Mars Numbers
- ios屏幕怎么投屏到电脑显示器
- Android WebView 实现网页缩放
- Johnson算法
- Python——安装requests第三方库
- MTK 预置apk
- 使用百度网盘配置私有Git服务
- SSH整合 第四篇 Spring的IoC和AOP
- 设置主外键时 ORA-02298: 无法验证 - 未找到父项关键字 --NOVALIDATE;
- 2019展望计划(Lamica 2019-Year Plan):
- 流媒体协议之RTP详解20170921