MCPcopy Index your code
hub / github.com/plotly/dash / until_not

Function until_not

dash/testing/wait.py:35–53  ·  view source on GitHub ↗
(
    wait_cond, timeout, poll=0.1, msg="expected condition met within timeout"
)

Source from the content-addressed store, hash-verified

33
34
35def until_not(
36 wait_cond, timeout, poll=0.1, msg="expected condition met within timeout"
37): # noqa: C0330
38 res = wait_cond()
39 logger.debug(
40 "start wait.until_not method, timeout, poll => %s %s %s",
41 wait_cond,
42 timeout,
43 poll,
44 )
45 end_time = time.time() + timeout
46 while res:
47 if time.time() > end_time:
48 raise TestingTimeoutError(msg)
49 time.sleep(poll)
50 res = wait_cond()
51 logger.debug("poll => %s", time.time())
52
53 return res
54
55
56class contains_text:

Callers

nothing calls this directly

Calls 1

TestingTimeoutErrorClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…