MCPcopy Index your code
hub / github.com/github/copilot-sdk / wait_for_predicate

Function wait_for_predicate

python/e2e/test_session_fs_e2e.py:665–671  ·  view source on GitHub ↗
(predicate, timeout: float = 5.0)

Source from the content-addressed store, hash-verified

663
664
665async def wait_for_predicate(predicate, timeout: float = 5.0) -> None:
666 deadline = asyncio.get_running_loop().time() + timeout
667 while asyncio.get_running_loop().time() < deadline:
668 if await predicate():
669 return
670 await asyncio.sleep(0.1)
671 raise TimeoutError("timed out waiting for condition")

Callers 2

wait_for_pathFunction · 0.85
wait_for_contentFunction · 0.85

Calls 1

predicateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…