EventQueue
Defines methods to working with Events queue.
Static Methods
emitBreakEvent
Puts the break event on the events queue. You can use it to break the #waitEvent().
public static void emitBreakEvent()
getEvent
Gets the first event from the events queue.
public static Event<?> getEvent()
Type | Description |
---|---|
Event<?> | Event data if any available otherwise return null |
waitEvent
Waits for event on current thread.
public static Event<?> waitEvent()
Type | Description |
---|---|
Event<?> | Caught event |