parameters: (self)
docstring: Stops the serve_forever loop.
  
          Blocks until the loop has finished. This must be called while
          serve_forever() is running in another thread, or it will
          deadlock.
docstring_summary: Stops the serve_forever loop.
docstring_tokens: Stops the serve_forever loop .
function: def shutdown(self):
          """Stops the serve_forever loop.
  
          Blocks until the loop has finished. This must be called while
          serve_forever() is running in another thread, or it will
          deadlock.
          """
          self.__shutdown_request = True
          self.__is_shut_down.wait()
function_tokens: def shutdown ( self ) : self . __shutdown_request = True self . __is_shut_down . wait ( )