queue . waitForMessage() waits synchronously for a message to arrive (if one is not already available and waiting to be handled).
Is event loop a queue?
queue . waitForMessage() waits synchronously for a message to arrive (if one is not already available and waiting to be handled).