JavaScript
You're viewing a free preview. Sign in free to read every script.
Why this exists Every network call, file read and timer in Node is asynchronous. JavaScript runs your code on one thread and switches between tasks while something waits, so understanding async/await and the event loop…
JavaScript Basics: Promises, async/await and the Event Loop
How JavaScript handles waiting without blocking: promises and async/await, sequential versus parallel work, Promise.all versus allSettled, the order of the event loop, the forEach trap and what an unhandled rejection does.
Sign in free to read this script, along with the rest of the library.
Sign in free