Yields execution until the event loop receives an event.
This method doesn't throw. Any exceptions, such as InterruptException or an exception passed to resumeTask, are stored and thrown on the next call to yieldForEvent.
See Implementation
Yields execution until the event loop receives an event.