pub fn pump_thread_messages() -> boolExpand description
Dispatches every Windows message currently waiting on this thread.
Returns true if a quit message was seen.
A single-threaded COM apartment delivers cross-apartment calls as window messages, so a thread that owns apartment objects and never pumps starves them. On a background thread, where nothing pumps by default, an engine running an execution will abort the process rather than fail cleanly, so this must be called regularly from any loop that owns such a thread.
A thread that only makes direct calls and owns no callbacks does not need
it; the cost is one PeekMessage per call when the queue is empty.