Opaque handle holding the daemon thread reference. Returned synchronously from ``start_api_preconnect`` so callers can optionally ``join`` for diagnostics. Production code never joins — the handshake is fire-and-forget.
| 36 | |
| 37 | |
| 38 | class PreconnectHandle: |
| 39 | """Opaque handle holding the daemon thread reference. |
| 40 | |
| 41 | Returned synchronously from ``start_api_preconnect`` so callers can |
| 42 | optionally ``join`` for diagnostics. Production code never joins — |
| 43 | the handshake is fire-and-forget. |
| 44 | """ |
| 45 | |
| 46 | __slots__ = ("thread", "skipped") |
| 47 | |
| 48 | def __init__(self, thread: threading.Thread | None, skipped: bool = False) -> None: |
| 49 | self.thread = thread |
| 50 | self.skipped = skipped |
| 51 | |
| 52 | |
| 53 | def should_skip_preconnect() -> bool: |
no outgoing calls
no test coverage detected