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.

read onlyloop:EventLoop

The EventLoop our event is part of.

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.

isStopped():Bool

Tells if the event has been stopped.

start(callb:() ‑> Void):Void

Start the event with the given callback function.

stop():Void

Stop this event from repeating.