@property
    def done_reading(self):
        return self.worker.EOF.is_set()
Done_reding does not mean that the iterator's buffer is empty.
dataset/ETHPy150Open codeinn/vcs/vcs/subprocessio.py/BufferedGenerator.done_reading