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

Chapter 2. Reactive Programming with RxPHP

In this chapter, we're going to have a better look at how we can use PHP's reactive extension library RxPHP. We'll mostly build on what we saw in the previous chapter, but going into greater detail.

In particular, we'll go through the following:

  • Various components of RxPHP that we'll use in this and all further chapters.
  • We'll quickly have a look at how to read and understand the Rx documentation. In particular, we'll have a look at marble diagrams that explain the functionality of Rx operators.
  • List a few basic operators that we'll use throughout the entire book and explain their functionality.
  • Write custom operator that decodes JSON strings into their appropriate array representations while properly handling errors.
  • Implement a simple script that downloads an HTML page via cURL. Then compare the same approach when utilizing RxPHP.
  • How to write a custom Observable for our cURL example.
  • We'll dig into RxPHP's source code and see what happens when we use built-in Observables and operators.

Before we look into each part of RxPHP separately, we'll quickly mention some very common terms that we'll use when talking about various aspects of Reactive Extensions.

主站蜘蛛池模板: 铅山县| 将乐县| 英吉沙县| 平江县| 会泽县| 宝兴县| 三原县| 罗山县| 东兰县| 天峨县| 泰兴市| 玉环县| 嵊泗县| 青浦区| 天镇县| 苏州市| 侯马市| 尼玛县| 高雄市| 玉树县| 嵩明县| 焦作市| 汽车| 城固县| 云霄县| 汶川县| 乌审旗| 浦东新区| 衡山县| 陆良县| 福贡县| 鄂尔多斯市| 班戈县| 桃源县| 西华县| 连江县| 固安县| 喀什市| 拜城县| 威信县| 临西县|