FlashcardAdvanced

Code after await runs as a microtask

Everything after an await is scheduled as a microtask, so it runs asynchronously after the current synchronous code.

Question

When does the code after an 'await' actually execute?

Click to reveal answer