class_docstr: Run ZAP authentication in a background thread
class_docstr_tok: ["Run","ZAP","authentication","in","a","background","thread"]
code: def __init__(
      self,
      context: Optional["zmq.Context"] = None,
      encoding: str = "utf-8",
      log: Any = None,
  ):
      super().__init__(context=context, encoding=encoding, log=log)
      self.pipe = None  # type: ignore
      self.pipe_endpoint = f"inproc://{id(self)}.inproc"
      self.thread = None
  
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 1 to create a new ThreadAuthenticator object from inherited base classes: Authenticator with example: obj = ThreadAuthenticator(context, encoding, log)