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

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.

主站蜘蛛池模板: 始兴县| 迁西县| 湘西| 台山市| 澄江县| 桐庐县| 谷城县| 仪征市| 汶上县| 寿宁县| 海淀区| 鄯善县| 蓬溪县| 阿克苏市| 黑龙江省| 上饶县| 嫩江县| 全椒县| 微山县| 哈巴河县| 利川市| 北票市| 开阳县| 璧山县| 罗田县| 双辽市| 宁津县| 杭锦旗| 北宁市| 明光市| 凉山| 武城县| 祁阳县| 高尔夫| 新巴尔虎左旗| 岚皋县| 高安市| 白玉县| 拜城县| 海丰县| 图木舒克市|