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

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.

主站蜘蛛池模板: 法库县| 甘南县| 定边县| 天峻县| 南召县| 资阳市| 晋宁县| 杭锦旗| 济源市| 江油市| 靖远县| 绥德县| 武定县| 无棣县| 凤山市| 集贤县| 屏东县| 彭阳县| 普陀区| 额尔古纳市| 田林县| 全南县| 梅河口市| 吴桥县| 镇坪县| 绥宁县| 安丘市| 达日县| 伊川县| 许昌市| 伊宁市| 惠来县| 杂多县| 文安县| 安乡县| 四川省| 出国| 泸西县| 镇原县| 双峰县| 于田县|