def is_done(self):
        """check if call-queue and collected are flushed"""
        if self.fifo or self.collected:
            return False
        return True
check if call-queue and collected are flushed
recipes/Python/491281_CallQueue_Easy_interthread/recipe-491281.py