public class ThreadTestingUtil extends Object
| Constructor and Description |
|---|
ThreadTestingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
waitFor(Callable<T> task,
TimeDuration timeout)
Waits until either the task returns a value or the timeout expires.
|
static TimeDuration |
waitForValue(PVReader<?> pvReader,
TimeDuration timeout) |
public static <T> T waitFor(Callable<T> task, TimeDuration timeout) throws Exception
T - the return type of the tasktask - the tasktimeout - the timeoutException - an exception from the taskpublic static TimeDuration waitForValue(PVReader<?> pvReader, TimeDuration timeout)
Copyright © 2015. All rights reserved.