
How async/await Really Works: From Syntax Sugar to State Machines
Async/await isn’t magic or parallelism. An async function runs until its first await, then suspends and returns a Promise. When that Promise settles, a microtask resumes execution. Under the hood, this is a resumable state machine.

