MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / PreconnectHandle

Class PreconnectHandle

src/utils/api_preconnect.py:38–50  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

36
37
38class 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
53def should_skip_preconnect() -> bool:

Callers 1

start_api_preconnectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected