Please generate comments for the following Python function:
def _receive_data(self):
        while True:
            while len(self._buffer) < self.max_size and self.conn.poll():
                data = self._read_chunks()
                if data is not None:
                    self._buffer.append(data)
            if len(self._buffer) > 0:
                return self._buffer.popleft() Use words with all capital letters to highlight key points, but make sure that words with all capital letters appear less than 7 times
user