parameters: (self)
docstring: Stop `StdoutProxy` proxy.
  
          This will terminate the write thread, make sure everything is flushed
          and wait for the write thread to finish.
docstring_summary: Stop `StdoutProxy` proxy.
docstring_tokens: Stop StdoutProxy proxy .
function: def close(self) -> None:
          """
          Stop `StdoutProxy` proxy.
  
          This will terminate the write thread, make sure everything is flushed
          and wait for the write thread to finish.
          """
          if not self.closed:
              self._flush_queue.put(_Done())
              self._flush_thread.join()
              self.closed = True
function_tokens: def close ( self ) -> None : if not self . closed : self . _flush_queue . put ( _Done ( ) ) self . _flush_thread . join ( ) self . closed = True