event loop

A collection of 2 post

All You Need To Know About Event Loop (2)

Event Loop Let’s check the code above. Assuming the ‘waitForMessage’ function behaves synchronously. It means it runs an infinite loop and waits for a message, and if there is a message, process the next one. In other words, the is not a component of the engine, but manages which job to pile up…

All You Need To Know About Event Loop (1)

JavaScript Process One of the great features of JavaScript is that it is a single-threaded-based language. Single thread means that only one task can be processed at the same time. However, if you consider the environment in which JavaScript is actually used, you can see that a lot of work is being…