class_docstr: Run ZAP authentication in a background thread
class_docstr_tok: ["Run","ZAP","authentication","in","a","background","thread"]
docstr: Stop the authentication thread
docstr_tok: ["Stop","the","authentication","thread"]
code: def stop(self) -> None:
      """Stop the authentication thread"""
      if self.pipe:
          self.pipe.send(b"TERMINATE")
          if self.is_alive():
              self.thread.join()
          self.thread = None  # type: ignore
          self.pipe.close()
          self.pipe = None  # type: ignore
      super().stop()
  
file_path: catboost/contrib/python/pyzmq/py3/zmq/auth/thread.py
imports: import asyncio
  from threading import Event, Thread
  from typing import Any, List, Optional
  import zmq
  import zmq.asyncio
  from .base import Authenticator
label_desc: Use image node_id 3 for calling the ThreadAuthenticator obj's underlying member method code with example usage: obj.stop() without return types