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