poll
dev_tool.tools.poll
poll_until
A function that polls a predicate until it returns True or times out.
Parameters:
-
predicate(Callable[[], bool]) –A callable that returns True when the condition is met.
-
timeout(int, default:30) –Maximum number of iterations to attempt.
-
interval(int, default:1) –The delay in seconds between polling attempts.
-
delay(int, default:1) –The delay in seconds after a successful predicate check.
Returns:
-
bool–True if the predicate succeeded, False if timeout.