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

Reactive types of RxJava 2

Even though the RxJava 2.x library and Project Reactor have the same basis, RxJava 2 has a different set of reactive publishers. As these two libraries implement the same ideas, it is worth describing how RxJava 2 differs, at least regarding reactive types. All other aspects, including reactive operators, thread management, and error handling, are pretty similar. So, being more or less familiar with one of the libraries means being familiar with both of them.

As described in Chapter 2Reactive Programming in Spring - Basic Concepts, RxJava 1.x originally had only one reactive type: Observable. Later, the Single and Completable types were added. In version 2, the library has the following reactive types—ObservableFlowableSingleMaybe, and Completable.  Let's briefly describe the difference between these and compare them to the Flux/Mono tandem.

主站蜘蛛池模板: 寿宁县| 昆山市| 民权县| 武邑县| 连南| 张家口市| 贵溪市| 临猗县| 莎车县| 景谷| 洪泽县| 绥阳县| 平武县| 赫章县| 荃湾区| 镇江市| 民县| 合江县| 师宗县| 延吉市| 通河县| 巫溪县| 东方市| 咸宁市| 通榆县| 武清区| 镇巴县| 横峰县| 昭苏县| 辉县市| 临湘市| 柘城县| 西贡区| 闵行区| 南通市| 克什克腾旗| 隆尧县| 铜鼓县| 东阿县| 阳新县| 内江市|