original_docstring: Clear the queue and do not accept further messages.
docstring: Clear the queue and do not accept further messages.
docstring_tokens: Clear the queue and do not accept further messages .
code: def finish(self):
          """Clear the queue and do not accept further messages."""
          with self.cond:
              self._finished = True
              while len(self.queue) > 0:
                  self.queue.popleft()
              self.cond.notify()
code_tokens: def finish ( self ) : with self . cond : self . _finished = True while len ( self . queue ) > 0 : self . queue . popleft ( ) self . cond . notify ( )
short_docstring: Clear the queue and do not accept further messages.
short_docstring_tokens: Clear the queue and do not accept further messages .
comment: """Clear the queue and do not accept further messages."""