官术网_书友最值得收藏!

Difference between bacon.js and RxJS observables

In Chapter 2, Reacting for the First Time, you learned that an observable is basically an abstraction over possible asynchronous data. The observable gives you the power to transform data using different operators and take an action when a piece of new data becomes available, using a subscriber. The bacon.js library uses the term subscriber to the object listening to incoming data, but on Reactive Extensions, we will use a different term; we will call it Observer.

Conceptually, there is no difference between the two. Basically, it was just names chosen by the developers of both libraries; however, it is important that you're aware of both the names as you will see both being used in the documentation of the libraries.

In bacon.js, we saw two different flavors of observables:

  • EventStreams
  • Properties

In RxJS, we will always talk about:

  • Observables
  • Observers
In this chapter, you will also learn more about three special objects in RxJS. They are called Subject, Disposable, and Scheduler.
主站蜘蛛池模板: 龙南县| 广宁县| 普格县| 乌拉特中旗| 石嘴山市| 连平县| 多伦县| 年辖:市辖区| 观塘区| 海南省| 拜泉县| 贵阳市| 旌德县| 西藏| 渝北区| 大姚县| 通化县| 泗水县| 全南县| 和平县| 桂林市| 青铜峡市| 台南市| 同心县| 英吉沙县| 延吉市| 德阳市| 浦县| 灵山县| 龙江县| 曲周县| 双鸭山市| 滁州市| 台中县| 崇信县| 沐川县| 微山县| 武安市| 商城县| 南丰县| 涿鹿县|