Hi, I’m Valerio, software engineer and CTO at Inspector. Whether you’ve looked at async/await and promises in javascript before, but haven’t quite mastered them yet, this article aims to help you to better understand the real effects of the nodejs async engine on your code execution flow. Furthermore we’ll do it visually, navigating the code execution flow in real-time thanks to Inspector.
Take a look on the following code example to read a file in nodejs: We tried to read a file using the asynchronous interface of the fs module.
Once we started to read our file the execution continued, and the application printed End of the script....