hhstore / blog

My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
279 stars 23 forks source link

Reactive Programming: ReactiveX #159

Open hhstore opened 5 years ago

hhstore commented 5 years ago

related:

hhstore commented 5 years ago

ReactiveX:

使用与数组集合方式 组合操作: 异步事件流 摆脱复杂的回调地狱 提高代码可读性, 降低出错性.

image

Rx(.NET): 微软

RxJava: Netflix开源

RxGo:

RxJs:

项目:

awesome:

教程:

hhstore commented 5 years ago

观察者模式:

hhstore commented 5 years ago

RxGo:

v2 版本分支:

教程:

hhstore commented 5 years ago

ReactiveX 中文文档:

可观察对象(Observable):

操作符(Operators):

调度器(Scheduler):

Subject( 桥梁/代理):

hhstore commented 5 years ago

ReactiveX 理念:

image

可观测的(observable):

image

操作符(operators):

image

image

image

image

image

hhstore commented 5 years ago

tips:

distinct(): 去重复

filter():

merge:

hhstore commented 5 years ago

示例代码: