MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _drain_pending_output

Method _drain_pending_output

tools/terminal.py:163–173  ·  view source on GitHub ↗
(self, idle_window: float = 0.2)

Source from the content-addressed store, hash-verified

161 self._drain_pending_output()
162
163 def _drain_pending_output(self, idle_window: float = 0.2) -> None:
164 if self.session is None:
165 return
166
167 deadline = time.time() + idle_window
168 while time.time() < deadline:
169 if self.session.recv_ready():
170 self.session.recv(4096)
171 deadline = time.time() + idle_window
172 else:
173 time.sleep(0.05)
174
175 def _normalize_command(self, command: str) -> str:
176 command = command.strip()

Callers 2

_connectMethod · 0.95
_execute_sshMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected