parameters: (self)
docstring: Stop the message processor and release its resources.
docstring_summary: Stop the message processor and release its resources.
docstring_tokens: Stop the message processor and release its resources .
function: def close(self):
          """Stop the message processor and release its resources."""
          if self.closed:
              return
          self._closing = True
          debug('raw closing')
  
          self._notify_closing()
          # Close the editor-side socket.
          self._stop_vsc_message_loop()
  
          # Ensure that the connection is marked as closed.
          with self._connlock:
              _util.lock_release(self._listening)
              _util.lock_release(self._connected)
          self._closed = True
function_tokens: def close ( self ) : if self . closed : return self . _closing = True debug ( 'raw closing' ) self . _notify_closing ( ) # Close the editor-side socket. self . _stop_vsc_message_loop ( ) # Ensure that the connection is marked as closed. with self . _connlock : _util . lock_release ( self . _listening ) _util . lock_release ( self . _connected ) self . _closed = True