public final class AsyncTestUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
waitFor(java.util.function.BooleanSupplier waitCondition)
Waits for the meeting the waiting condition using default timeout and interval.
|
static boolean |
waitFor(java.util.function.BooleanSupplier waitCondition,
long timeoutMs,
long retryIntervalMs)
Waits for the meeting the waiting condition.
|
public static boolean waitFor(java.util.function.BooleanSupplier waitCondition)
waitCondition
- the condition to checktrue
if condition has been met within the given time, false
otherwisepublic static boolean waitFor(java.util.function.BooleanSupplier waitCondition, long timeoutMs, long retryIntervalMs)
waitCondition
- the condition to checktimeoutMs
- time for the condition to be satisfied in millisecondsretryIntervalMs
- retry interval for checking the conditiontrue
if condition has been met within the given time, false
otherwiseCopyright © 2002-2023 Atlassian. All Rights Reserved.