Variables

@:value(true)isBlocking:Bool = true

Tells if an event is blocking. It means the event loop won't return from loop() until this event has been stopped.

priority:Int

The event priority. Events will be executed in order of priority (highest first).

Methods

@:value({ fromLastRun : false })delay(t:Null<Float>, fromLastRun:Bool = false):Void

Delay the execution of the event for the given time, in seconds. If t is null, the event will be run at next event loop.

stop():Void

Stop this event from repeating.