abstract public onSignal ( integer $signo, callable $callback, mixed $data = null ) : string | ||
$signo | integer | The signal number to monitor. |
$callback | callable | |
$data | mixed | Arbitrary data given to the callback function as the $data parameter. |
return | string | An unique identifier that can be used to cancel, enable or disable the watcher. |