- Mastering Node.js(Second Edition)
- Sandro Pasquali Kevin Faaborg
- 103字
- 2021-07-02 19:28:45
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.
推薦閱讀
- 黑客攻防實戰技術完全手冊:掃描、嗅探、入侵與防御
- 廣電5G從入門到精通
- Building E-commerce Sites with VirtueMart Cookbook
- 物聯網(IoT)基礎:網絡技術+協議+用例
- 物聯網網絡安全及應用
- INSTANT PhpStorm Starter
- 5G承載網網絡規劃與組網設計
- Hands-On Chatbots and Conversational UI Development
- Getting Started with Grunt:The JavaScript Task Runner
- jQuery Mobile Web Development Essentials
- 端到端QoS網絡設計
- 區塊鏈技術與應用:打造分布式商業新生態
- 想象的互動:網絡人際傳播中的印象形成
- 路由與交換技術
- Telerik WPF Controls Tutorial