Contains a function that is scheduled to be executed when a condition is met.
Available since
0.1.0
.Constructor
new(name:String, f:ConditionalF ‑> Void, condition:() ‑> Bool, once:Bool)
Creates an nb.Timer.ConditionalF
instance.
Parameters:
name | A name to identify the instance. |
---|---|
f | The scheduled function. Will have the instance as argument. |
condition | When this function returns |
once | Whether the associated function is set to be executed only once.
If |