parameters: (self)
docstring: Stop the listener.
  
          This asks the thread to terminate, and then waits for it to do so.
          Note that if you don't call this before your application exits, there
          may be some records still left on the queue, which won't be processed.
docstring_summary: Stop the listener.
docstring_tokens: Stop the listener .
function: def stop(self):
          """
          Stop the listener.
  
          This asks the thread to terminate, and then waits for it to do so.
          Note that if you don't call this before your application exits, there
          may be some records still left on the queue, which won't be processed.
          """
          self.enqueue_sentinel()
          self._thread.join()
          self._thread = None
function_tokens: def stop ( self ) : self . enqueue_sentinel ( ) self . _thread . join ( ) self . _thread = None