随笔分类 -  ReactiveX

摘要:将值的变化和事件看作状态的变化;编程的目的在于响应状态; 将函数作为变量注册为状态的响应处理器。 rx 响应式编程天然具有函数式编程特征; 一切变化皆状态(流)。 阅读全文
posted @ 2022-06-15 16:36 zzfx 阅读(59) 评论(0) 推荐(0) 编辑
摘要:Programs take input and produce output. The output is the result of doing something with the input. Input, transform, output, done. This pattern is ea 阅读全文
posted @ 2019-01-17 15:05 zzfx 阅读(197) 评论(0) 推荐(0) 编辑
摘要:To put it another way, the output at any one time is the result of combining all inputs. The output is a function of all inputs up to that time. 摘要: 1 阅读全文
posted @ 2019-01-17 14:49 zzfx 阅读(265) 评论(0) 推荐(0) 编辑
摘要:响应式编程的三个层次: 1、将事件和数据抽象为流; 2、使用声明式(函数式)编程简化流的处理流程; 3、将各类输入(流)封装(抽象)为流的端口。 4、是交互式编程开发的利器; 1、基于事件和异步; 响应编程能够简化编程,它依赖于事件,代码运行的顺序不是代码行的顺序,而是和一个以上的事件有关,这些事件 阅读全文
posted @ 2019-01-16 18:39 zzfx 阅读(881) 评论(0) 推荐(0) 编辑
摘要:Reactive Extensions (Rx) 原来是由微软提出的一个综合了异步和基于事件驱动编程的库包,使用可观察序列和LINQ-style查询操作。 使用Rx, 开发者可以用Observables来表达异步数据流,使用LinQ操作查询异步数据流,使用Schedulers参数化异步数据流中并发。 阅读全文
posted @ 2018-05-07 20:08 zzfx 阅读(1066) 评论(0) 推荐(0) 编辑
摘要:http://reactivex.io The real power comes with the “reactive extensions” (hence “ReactiveX”) — operators that allow you to transform, combine, manipula 阅读全文
posted @ 2018-05-07 19:55 zzfx 阅读(167) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示