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

Function wait_for_content

python/e2e/test_session_fs_e2e.py:658–662  ·  view source on GitHub ↗
(path: Path, expected: str, timeout: float = 5.0)

Source from the content-addressed store, hash-verified

656
657
658async def wait_for_content(path: Path, expected: str, timeout: float = 5.0) -> None:
659 async def predicate():
660 return path.exists() and expected in path.read_text(encoding="utf-8")
661
662 await wait_for_predicate(predicate, timeout=timeout)
663
664
665async def wait_for_predicate(predicate, timeout: float = 5.0) -> None:

Calls 1

wait_for_predicateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…