❔ Processing window messages in while loop in console
How do I process window messages while my code is in a
while(true) loop with Thread.Sleep() in console? Because I need my code to run in a loop until user closes the window.