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…