Hacker News new | ask | show | jobs
by deepGem 5381 days ago
This is very elegant. Just a couple of questions -

Using await - is the program flow suspended until the corresponding function returns , or does await keyword act more like a 'pause and continue' mechanism.

1 comments

It exits the function, and resumes it when the callback completes. So other requests can be processed while the async function is (a)waiting.
Perfect :).