Searched defs:future (Results 1 - 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DOutputStreamTesterTest.java117 private Future<byte[]> future; field in class:OutputStreamTesterTest.PipedOutputStreamSinkTester
124 future = executor.submit(new Callable<byte[]>() {
142 return future.get();
H A DWriterTesterTest.java110 private Future<char[]> future; field in class:WriterTesterTest.PipedWriterCharSinkTester
117 future = executor.submit(new Callable<char[]>() {
136 return future.get();
/libcore/jsr166-tests/src/test/java/jsr166/
H A DJSR166TestCase.java607 * delayMillis milliseconds in the future.
943 for (Future<?> future : futures)
945 assertNull(future.get(LONG_DELAY_MS, MILLISECONDS));
1023 * Checks that future.get times out, with the default timeout of
1026 void assertFutureTimesOut(Future future) { argument
1027 assertFutureTimesOut(future, timeoutMillis());
1031 * Checks that future.get times out, with the given millisecond timeout.
1033 void assertFutureTimesOut(Future future, long timeoutMillis) { argument
1036 future.get(timeoutMillis, MILLISECONDS);
1041 } finally { future
[all...]

Completed in 111 milliseconds