waitUntil

open fun waitUntil(condition: BooleanSupplier): Boolean

Waits until the specified condition is true, or times out after around 10 seconds

Return

true if the condition was true, false if the timeout was reached

Parameters

condition

the condition


open fun waitUntil(timeout: Int, condition: BooleanSupplier): Boolean

Waits until the specified condition is true, or the timeout limit is reached

Return

true if the condition was true, false if the timeout was reached

Parameters

timeout

the timeout in milliseconds

condition

the condition to check


open fun waitUntil(timeout: Int, step: Int, condition: BooleanSupplier): Boolean

Waits until the specified condition is true, or the timeout limit is reached

Return

true if the condition was true, false if the timeout was reached

Parameters

timeout

the timeout in milliseconds

step

the amount of time inbetween each condition check

condition

the condition to check