src/Network/Connection.php
public function setWaitCallback($waitCallback)
    {
        if ($waitCallback !== null) {
            if (!is_callable($waitCallback)) {
                throw new \InvalidArgumentException('$waitCallback must be callable.');
            }
        }
        $this->waitCallback = $waitCallback;
    }
public function setWaitCallback($waitCallback)
    {
        if ($waitCallback !== null) {
            if (!is_callable($waitCallback)) {
                throw new \InvalidArgumentException('$waitCallback must be callable.');
            }
        }
        $this->waitCallback = $waitCallback;
    }
public function setWaitCallback ( $ waitCallback ) { if ( $ waitCallback !== null ) { if ( ! is_callable ( $ waitCallback ) ) { throw new \ InvalidArgumentException ( '$waitCallback must be callable.' ) ; } } $ this -> waitCallback = $ waitCallback ; }
Sets a wait callback that will be invoked when the connection is waiting for new data.

This is a good place to call `pcntl_signal_dispatch()` if you need to ensure that your process signals in an
interval that is lower as read timeout. You should also return `false` in your callback if you don't want the
connection to continue waiting for data.

@param callable|null $waitCallback
Sets a wait callback that will be invoked when the connection is waiting for new data .