Initialize the event loop thread.
(self, thread_name: str = THREAD_BACKGROUND)
| 14 | _lock = threading.Lock() |
| 15 | |
| 16 | def __init__(self, thread_name: str = THREAD_BACKGROUND) -> None: |
| 17 | """Initialize the event loop thread.""" |
| 18 | self.thread_name = thread_name |
| 19 | self._start() |
| 20 | |
| 21 | def __new__(cls, thread_name: str = THREAD_BACKGROUND): |
| 22 | with cls._lock: |