MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / wait_until

Function wait_until

tests/test_daemon_smoke.py:59–65  ·  view source on GitHub ↗
(predicate, timeout, description)

Source from the content-addressed store, hash-verified

57
58
59def wait_until(predicate, timeout, description):
60 deadline = time.monotonic() + timeout
61 while time.monotonic() < deadline:
62 if predicate():
63 return
64 time.sleep(0.1)
65 raise SmokeFailure("timed out waiting for " + description)
66
67
68def sha256_file(path):

Callers 2

assert_coordination_idleFunction · 0.85
mainFunction · 0.85

Calls 1

SmokeFailureClass · 0.70

Tested by

no test coverage detected