Category: Laravel, PHP, nodejs, javascript

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....
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners