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

Function _drain

src/prefetch.py:98–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 return
97
98 def _drain() -> None:
99 if proc.poll() is None:
100 try:
101 proc.kill()
102 except (OSError, ProcessLookupError): # pragma: no cover
103 return
104 try:
105 proc.communicate(timeout=0.1)
106 except Exception: # pragma: no cover
107 pass
108
109 atexit.register(_drain)
110

Callers

nothing calls this directly

Calls 2

killMethod · 0.45
communicateMethod · 0.45

Tested by

no test coverage detected