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

Concurrency and errors

Members of the Node community develop new packages and projects every day. Because of Node's evented nature, callbacks permeate these codebases. We've considered several of the key ways in which events might be queued, dispatched, and handled through the use of callbacks. Let's spend a little time outlining the best practices, in particular, about conventions for designing callbacks and handling errors, and discuss some useful patterns when designing complex chains of events and callbacks. In particular, let's look at the new Promise, Generator, and async/await patterns that you will see in this book, and other examples of modern Node code.

主站蜘蛛池模板: 桐梓县| 湖北省| 宝鸡市| 上虞市| 郯城县| 黄梅县| 永城市| 湘阴县| 安达市| 平罗县| 博罗县| 三门县| 七台河市| 台北市| 龙泉市| 通化县| 莫力| 长葛市| 通海县| 大邑县| 禹城市| 余姚市| 民权县| 乌兰浩特市| 平利县| 新泰市| 靖宇县| 阿拉善右旗| 罗田县| 郁南县| 原平市| 金坛市| 惠东县| 宣威市| 阿克苏市| 常熟市| 鹰潭市| 金阳县| 绥宁县| 玛沁县| 陆川县|