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

Function _wait_for

python/e2e/test_rpc_session_state_e2e.py:87–93  ·  view source on GitHub ↗
(condition, *, timeout: float = 15.0, message: str)

Source from the content-addressed store, hash-verified

85
86
87async def _wait_for(condition, *, timeout: float = 15.0, message: str):
88 deadline = time.monotonic() + timeout
89 while time.monotonic() < deadline:
90 if await condition():
91 return
92 await asyncio.sleep(0.2)
93 pytest.fail(message)
94
95
96async def _assert_implemented_failure(awaitable, method: str) -> None:

Calls 1

failMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…