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

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.

主站蜘蛛池模板: 景德镇市| 涪陵区| 盐津县| 普陀区| 开原市| 巴彦淖尔市| 乐安县| 鄄城县| 常宁市| 南岸区| 平阴县| 泰州市| 永清县| 垦利县| 临夏县| 遂溪县| 凉山| 临沧市| 石城县| 衢州市| 吴旗县| 怀集县| 大名县| 鹿邑县| 海门市| 丰都县| 曲阳县| 玉林市| 玛沁县| 原阳县| 本溪| 垦利县| 黄浦区| 恭城| 特克斯县| 武邑县| 耿马| 扎赉特旗| 凌源市| 万安县| 安远县|