MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _wait_pid_exit

Method _wait_pid_exit

src/services/browser_captcha.py:945–953  ·  view source on GitHub ↗
(self, pid: Optional[int], timeout_seconds: float = 5.0)

Source from the content-addressed store, hash-verified

943 return False
944
945 async def _wait_pid_exit(self, pid: Optional[int], timeout_seconds: float = 5.0) -> bool:
946 if not pid:
947 return True
948 deadline = time.time() + timeout_seconds
949 while time.time() < deadline:
950 if not self._is_pid_running(pid):
951 return True
952 await asyncio.sleep(0.2)
953 return not self._is_pid_running(pid)
954
955 def _kill_pid(self, pid: Optional[int], reason: str):
956 if not pid:

Callers 2

_close_browserMethod · 0.95

Calls 2

_is_pid_runningMethod · 0.95
sleepMethod · 0.80

Tested by

no test coverage detected