Home | History | Annotate | Download | only in testing

Lines Matching refs:Future

27 import java.util.concurrent.Future;
110 * Waits until the given future {@linkplain Future#isDone is done}, invoking the garbage
115 public static void awaitDone(Future<?> future) {
116 if (future.isDone()) {
123 if (future.isDone()) {
128 future.get(1L, SECONDS);
135 throw new RuntimeException("Unexpected interrupt while waiting for future", ie);
141 String.format("Future not done within %d second timeout", timeoutSeconds));