- 生活和工作中无时不刻和数据打交道
- 数据的生产者、数据的消费者
- 生活中的一些数据流,早上地铁的限流(数据流的创建、合并、回压控制、)
ReactiveX http://reactivex.io/
ReactiveX is a combination of the best ideas from the Observer pattern, the Iterator pattern, and functional programming
RxJS Reactive Extensions Library for JavaScript
represents the idea of an invokable collection of future values or events
is a collection of callbacks that knows how to listen to values delivered by the Observable
represents the execution of an Observable, is primarily useful for cancelling the execution
are pure functions that enable a functional programming style of dealing with collections with operations like map, filter, concat, reduce, etc.
- 创建类操作符
- 合并类操作符
- 辅助类操作符
- 过滤类操作符
- 异常错误处理类操作符
is the equivalent to an EventEmitter, and the only way of multicasting a value or event to multiple Observers.
are centralized dispatchers to control concurrency, allowing us to coordinate when computation happens on e.g. setTimeout or requestAnimationFrame or others.
- ReactiveX: http://reactivex.io/
- RxJS: https://rxjs-dev.firebaseapp.com
- 深入浅出RxJS