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

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.

主站蜘蛛池模板: 丰县| 丰都县| 温泉县| 普宁市| 新绛县| 富民县| 彰化县| 巴彦县| 佳木斯市| 高台县| 襄汾县| 新龙县| 朝阳区| 游戏| 丰镇市| 南丰县| 乌海市| 凌源市| 白水县| 黑河市| 浠水县| 呼和浩特市| 汤原县| 宜州市| 宜宾县| 东港市| 大新县| 康保县| 乌兰浩特市| 黑山县| 朝阳区| 工布江达县| 会东县| 团风县| 伊川县| 缙云县| 启东市| 浑源县| 楚雄市| 怀化市| 界首市|