Task/File/Csv/CsvSplitterTask.php
public function next(ProcessState $state)
    {
        if (!$this->csv instanceof CsvResource) {
            return false;
        }

        $endOfFile = $this->csv->isEndOfFile();
        if ($endOfFile) {
            $this->csv->close();
            $this->csv = null;
        }

        return !$endOfFile;
    }
public function next(ProcessState $state)
    {
        if (!$this->csv instanceof CsvResource) {
            return false;
        }

        $endOfFile = $this->csv->isEndOfFile();
        if ($endOfFile) {
            $this->csv->close();
            $this->csv = null;
        }

        return !$endOfFile;
    }
Moves the internal pointer to the next element,
return true if the task has a next element
return false if the task has terminated it's iteration

@param ProcessState $state

@throws \LogicException
@throws \UnexpectedValueException
@throws \RuntimeException

@return bool