abstract public onReadable ( resource $stream, callable $callback, mixed $data = null ) : string | ||
$stream | resource | The stream 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. |