processNextEvent
Platform and version requirements: JVM
Processes next event in this event loop.
The result of this function is to be interpreted like this:
<= 0
– there are potentially more events for immediate processing;> 0
– a number of nanoseconds to wait for next scheduled event;- Long.MAX_VALUE – no more events, or was invoked from the wrong thread.