Contains a function that is scheduled to be executed after some time.
Available since
0.1.0
.Constructor
new(name:String, f:DelayedF ‑> Void, t:Float, once:Bool, frames:Bool)
Creates an nb.Timer.DelayedF
instance.
Parameters:
name | A name to identify this instance. |
---|---|
f | The scheduled function. Will have this instance as argument. |
t | The time, in seconds, before the associated function gets executed. |
once | Whether the associated function is set to be executed only once.
If |
frames | If |
Variables
once:Bool
Whether the associated function is set to be executed only once.
If false
, the function gets executed every tStart
seconds.