Available on all platforms
staticread onlythreadCount:Int
@:value({ priority : 0 })staticadd(f:() ‑> Void, priority:Int = 0):MainEvent
Add a pending event to be run into the main loop.
staticaddThread(f:() ‑> Void):Void
statichasEvents():Bool
staticrunInMainThread(f:() ‑> Void):Void