I’m JS illiterate but I think control is returned to the main thread until the await call returns, at which time the execution continues.
Async / await is just a code transformation that introduces Promise wrappers.
The code should be equivalent to the original. (I've just overlooked the top-level `async`…).