The Runtime Theory
Runtime & ExecutionPlanned

What Node.js Does While JavaScript Awaits

Video not available yet
#nodejs#event-loop#async-await

The lesson runs a short async function and pauses at await. A timeline shows the current JavaScript stack returning, the operation progressing through runtime and platform facilities, and the continuation becoming runnable after the promise settles.

The demonstration then inserts a long synchronous loop to show why the event loop cannot run another JavaScript callback while that work occupies the thread. It distinguishes I/O waiting from worker-pool tasks and CPU-heavy JavaScript, noting that the exact path depends on the API and platform. Companion material: async execution article, resumption trace, and Node.js event-loop guidance.

Related articles

New lessons by email

Get new articles and notes on the systems behind everyday software.

One technical dispatch per week. No noise.

Not started

Sign in to save your learning progress.

Sign in to save