original_docstring: Shut down application and free all resources. This will also stop the event loop.
docstring: Shut down application and free all resources. This will also stop the event loop.
docstring_tokens: Shut down application and free all resources . This will also stop the event loop .
code: def stop(self):
  
          """Shut down application and free all resources. This will also stop the event loop."""
  
          self.logger.info("Stopping...")
          self.logger.debug("Running clean up functions...")
          for i in self.cleanUpHandles:
              try:
                  i()
              except:
                  self.logger.exception("An unhandled exception occured in clean up handler")
          if self.loop.is_running():
              self.loop.stop()
          self.logger.debug("Deinitializing Pygame...")
          pygame.quit() #make sure we stop all coroutines possibly making calls to pygame before we shut it down
          self.logger.info("Stopped")
code_tokens: def stop ( self ) : self . logger . info ( "Stopping..." ) self . logger . debug ( "Running clean up functions..." ) for i in self . cleanUpHandles : try : i ( ) except : self . logger . exception ( "An unhandled exception occured in clean up handler" ) if self . loop . is_running ( ) : self . loop . stop ( ) self . logger . debug ( "Deinitializing Pygame..." ) pygame . quit ( ) self . logger . info ( "Stopped" )
short_docstring: Shut down application and free all resources.
short_docstring_tokens: Shut down application and free all resources .
comment: """Shut down application and free all resources. This will also stop the event loop."""$SEP$#make sure we stop all coroutines possibly making calls to pygame before we shut it down