|
pas
|

Public Member Functions | |
| __construct (callable $condition_function) | |
| isTrue () | |
| add (callable $function, float $interval_seconds=0.001, bool $call_immediately=false) | |
| remove (Loop $loop) | |
Public Attributes | |
| $loops = [] | |
| pas\Condition::__construct | ( | callable | $condition_function | ) |
| callable | $condition_function |
| pas\Condition::add | ( | callable | $function, |
| float | $interval_seconds = 0.001, |
||
| bool | $call_immediately = false |
||
| ) |
Registers a function to be called every X seconds.
| callable | $function | |
| float | $interval_seconds | |
| bool | $call_immediately | True if the function should be called immediately, false if the interval should expire first. |
| pas\Condition::isTrue | ( | ) |
Reimplemented in pas\AlwaysTrueCondition.
| pas\Condition::remove | ( | Loop | $loop | ) |
| pas\Condition::$loops = [] |
1.8.16