Skip to main content
reference

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()

TypeDescription
Event<?> Event data if any available otherwise return null

waitEvent

Waits for event on current thread.

public static Event<?> waitEvent()

TypeDescription
Event<?> Caught event