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

Summary

In this chapter, we made our first contact with the practical aspects of writing asynchronous code. You discovered the two pillars of the entire Node.js asynchronous infrastructure—the callback and the EventEmitter—and we explored in detail their use cases, conventions, and patterns. We also explored some of the pitfalls of dealing with asynchronous code and you learned about the ways to avoid them. Mastering the content of this chapter paves the way toward learning the more advanced asynchronous techniques that will be presented throughout the rest of this book.

In the next chapter, you will learn how to deal with complex asynchronous control flows using callbacks.

主站蜘蛛池模板: 霍州市| 安乡县| 佛冈县| 文山县| 福鼎市| 浪卡子县| 夹江县| 斗六市| 山东省| 吉水县| 晋宁县| 江陵县| 奉贤区| 北海市| 合作市| 鹿邑县| 武宣县| 尖扎县| 绵阳市| 曲水县| 吉水县| 铅山县| 左权县| 依兰县| 商水县| 海阳市| 桃园市| 阜宁县| 绥中县| 荥阳市| 大渡口区| 聊城市| 海兴县| 夏河县| 祁连县| 会宁县| 盖州市| 通河县| 威信县| 大同县| 尉犁县|