Amp\Mysql\ResultProxy::rowFetched PHP Method

rowFetched() public method

public rowFetched ( $row )
    public function rowFetched($row)
    {
        if ($row !== null) {
            $this->rows[$this->fetchedRows++] = $row;
        }
        list($key, list($entry, , $cb)) = each($this->deferreds[ResultProxy::SINGLE_ROW_FETCH]);
        if ($key !== null) {
            unset($this->deferreds[ResultProxy::SINGLE_ROW_FETCH][$key]);
            $entry->succeed($cb && $row ? $cb($row) : $row);
        }
    }