Task/IterableBatchTask.php
public function next(ProcessState $state)
    {
        // Stop flushing once over
        if (!\count($this->outputQueue)) {
            $this->flushMode = false;
        }

        return $this->flushMode;
    }
public function next(ProcessState $state)
    {
        // Stop flushing once over
        if (!\count($this->outputQueue)) {
            $this->flushMode = false;
        }

        return $this->flushMode;
    }
@param ProcessState $state

@return bool