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

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.

主站蜘蛛池模板: 萨迦县| 梁山县| 洛南县| 天门市| 宣化县| 平武县| 腾冲县| 昆明市| 吉木萨尔县| 旌德县| 广德县| 阳西县| 格尔木市| 全南县| 兰考县| 浦东新区| 利川市| 山西省| 平谷区| 清水县| 长沙市| 呼和浩特市| 察雅县| 金阳县| 邳州市| 华坪县| 宁海县| 微山县| 安平县| 大安市| 金昌市| 仙桃市| 高陵县| 万载县| 云南省| 洪江市| 青海省| 横山县| 福清市| 三原县| 西昌市|