DEV Community

Discussion on: JS illustrated: The event loop 🔁

Collapse
 
sborsay profile image
Stephen Borsay

Hi,

On your description it shows the Web API putting "two" on the message queue but when the message is extracted from the message queue you are showing that is done by the event loop instead, Is this correct? Does the Web API always push to the message queue while the event loop extracts from the queue, or are you just missing showing the web API managing the both inserting and extracting to the message queue after being triggered by the event loop?