Task/File/Csv/CsvReaderTask.php
public function next(ProcessState $state)
    {
        if (!$this->csv instanceof CsvFile) {
            throw new \LogicException('No CSV File initialized');
        }

        $state->removeErrorContext('csv_file');
        $state->removeErrorContext('csv_line');

        return !$this->csv->isEndOfFile();
    }
public function next(ProcessState $state)
    {
        if (!$this->csv instanceof CsvFile) {
            throw new \LogicException('No CSV File initialized');
        }

        $state->removeErrorContext('csv_file');
        $state->removeErrorContext('csv_line');

        return !$this->csv->isEndOfFile();
    }
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