Repo2\QueryReactor\Driver\Mysqli\MysqliDriver::poll PHP Method

poll() public method

public poll ( array $links )
$links array
    public function poll(array $links)
    {
        $read = $error = $reject = $links;
        if (false === mysqli_poll($read, $error, $reject, $this->timeout)) {
            throw new MysqliException(sprintf('Maximum polling time of %d seconds exceeded.', $this->timeout));
        }
        foreach ($reject as $link) {
            /* @var $link \mysqli */
            throw new MysqliException(sprintf('The connection to the host %s is rejected.', $link->host_info));
        }
        return [$read, $error];
    }