4
Asynchronous Programming
This chapter will explain in detail how to use all the asynchronous mechanisms that JavaScript offers today, including how to convert callbacks to promises and perform bulk asynchronous operations.
You will gain an in-depth understanding of all the tools at your disposal for managing both simple and complex asynchronous activities. We’ll begin with callbacks following Node.js Core conventions, then progress to effectively handling asynchronous operations using promises, and async/await. Toward the end of the chapter, we’ll employ the Immediately Invoked Function Expression (IIFE) pattern to execute asynchronous code. Additionally, we will provide a comprehensive overview of how to convert asynchronous operations between ...
Get Node.js for Beginners now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.