Asyncore
|
Public Member Functions | |
__construct (callable $condition_function) | |
isTrue () | |
onFalse (callable $handler) | |
add (callable $function, float $interval_seconds=0.001, bool $call_immediately=false) | |
Public Attributes | |
$loops = [] | |
$false_handlers = [] | |
Asyncore\Condition::__construct | ( | callable | $condition_function | ) |
callable | $condition_function |
Asyncore\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. |
Asyncore\Condition::isTrue | ( | ) |
Asyncore\Condition::onFalse | ( | callable | $handler | ) |
callable | $handler |
Asyncore\Condition::$false_handlers = [] |
Asyncore\Condition::$loops = [] |