|
pas
|
Static Public Member Functions | |
| static | isWindows () |
| static | on (string $event, callable $function) |
| static | fire (string $event, array $parameters=[]) |
| static | add (callable $function, float $interval_seconds=0.001, bool $call_immediately=false) |
| static | remove (Loop $loop) |
| static | whileLoop (callable $condition_function) |
| static | exitLoop () |
| static | loop () |
| static | curl_exec (&$ch, callable $callback) |
| static | init () |
Static Public Attributes | |
| static | $recalculate_loops = true |
|
static |
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. |
|
static |
Drop-in replacement for curl_exec. Instead of blocking until the request has finished, this immediately returns and the result will be passed to the callback function when the request is finished.
| resource | $ch | |
| callable | $callback |
|
static |
Causes the pas::loop() function to return, if it is currently running.
|
static |
Calls all event handlers for the given event.
| string | $event | |
| array | $parameters |
|
static |
Used internally to initialize pas's default Condition.
|
static |
Returns true if the code is running on a Windows machine.
|
static |
Runs pas's loop. This should be the last call in your script.
|
static |
Registers an event handler.
| string | $event | |
| callable | $function |
|
static |
Removes the given loop from the default Condition.
| Loop | $loop |
|
static |
|
static |
1.8.16