Method | Description | |
---|---|---|
__clone ( ) | ||
__construct ( callable $function, $args ) | ||
__destruct ( ) | ||
enabled ( ) : boolean | Checks if forking is enabled. | |
getPid ( ) : integer | Gets the forked process's process ID. | |
getPriority ( ) : float | Gets the fork's scheduling priority as a percentage. | |
isRunning ( ) : boolean | Checks if the context is running. | |
join ( ) : Generator | ||
kill ( ) | ||
receive ( ) : Generator | ||
send ( $data ) : Generator | ||
setPriority ( float $priority ) : float | Sets the fork's scheduling priority as a percentage. | |
signal ( integer $signo ) | ||
spawn ( callable $function, $args ) : self | Spawns a new forked process and runs it. | |
start ( ) | Starts the context execution. |
Method | Description | |
---|---|---|
execute ( Channel $channel ) : Generator |
public getPriority ( ) : float | ||
return | float | A priority value between 0 and 1. |
public setPriority ( float $priority ) : float | ||
$priority | float | A priority value between 0 and 1. |
return | float |