MCPcopy Create free account
hub / github.com/StarsTom/mobileCodexHelper / wait_for

Function wait_for

mobile_codex_control.py:280–286  ·  view source on GitHub ↗
(predicate: Callable[[], bool], timeout: float, interval: float = 1.0)

Source from the content-addressed store, hash-verified

278
279
280def wait_for(predicate: Callable[[], bool], timeout: float, interval: float = 1.0) -> bool:
281 deadline = time.time() + timeout
282 while time.time() < deadline:
283 if predicate():
284 return True
285 time.sleep(interval)
286 return predicate()
287
288
289def powershell_file(script_name: str, timeout: int = 60) -> subprocess.CompletedProcess[str]:

Callers 2

perform_actionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected