Amp\Mysql\ConnectionPool::ready PHP Method

ready() private method

private ready ( $conn )
    private function ready($conn)
    {
        if (list($deferred, $method, $args) = $this->virtualConnection->getCall()) {
            $deferred->succeed(call_user_func_array([$conn, $method], $args));
        } else {
            $this->ready[] = $conn;
            end($this->ready);
            $this->readyMap[spl_object_hash($conn)] = key($this->ready);
            reset($this->ready);
        }
    }