About Messages and Message Queues
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644927(v=vs.85).aspx#
Here are some information for dotnet developers:
Application.Runinternally maintains the message/event loopControl.BeginInvokeis similar toPostMessageControl.Invoke, though internally implemented usingPostMessage, will wait for the execution to complete likeSendMessageWinFormSynchronizationContextor WPFDispatchershould be used instead ofControl.BeginInvoke/Invoke, because the Control might be already disposed when you call itsBeginInvokein another thread, whereas theSynchronizationContextmaintains its own control that has a longer life time scope.Application.DoEvents: https://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents.aspx the example in this document explains quite well the scenario it can, but not necessary, be used.
All the above (except the Application.Run) are signs of bad design, I post them here just to help you understand the existing code.
NodeJS Event Loop
Last updated
Was this helpful?