Handles async events for all threads
Static variables
Static methods
Constructor
Methods
add(callb:() ‑> Void, priority:Int = 0):Event
Add a callback to be run at each loop of the event loop.
addTimer(callb:() ‑> Void, delay:Float, priority:Int = 0):Event
Add a callback to be run every delay seconds until stopped
hasEvents(blocking:Bool = true):Bool
Tells if the event loop has remaining events. If blocking is set to true, only check if it has remaining blocking events.