- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 25 for awaitUninterruptibly (0.46 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
Stopwatch stopwatch = Stopwatch.createStarted(); CountDownLatch latch = new CountDownLatch(0); awaitUninterruptibly(latch); assertTrue(awaitUninterruptibly(latch, 0, MILLISECONDS)); assertTrue(awaitUninterruptibly(latch, -42, MILLISECONDS)); assertTrue(awaitUninterruptibly(latch, LONG_DELAY_MS, MILLISECONDS)); assertTimeNotPassed(stopwatch, LONG_DELAY_MS); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
Stopwatch stopwatch = Stopwatch.createStarted(); CountDownLatch latch = new CountDownLatch(0); awaitUninterruptibly(latch); assertTrue(awaitUninterruptibly(latch, 0, MILLISECONDS)); assertTrue(awaitUninterruptibly(latch, -42, MILLISECONDS)); assertTrue(awaitUninterruptibly(latch, LONG_DELAY_MS, MILLISECONDS)); assertTimeNotPassed(stopwatch, LONG_DELAY_MS); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
@Override public void close() throws IOException { latch.countDown(); } boolean awaitClosed() { return awaitUninterruptibly(latch, 10, SECONDS); } boolean stillOpen() { return !awaitUninterruptibly(latch, 1, SECONDS); } @Override public String toString() { return name; } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ForwardingCondition.java
} @Override public boolean await(long time, TimeUnit unit) throws InterruptedException { return delegate().await(time, unit); } @Override public void awaitUninterruptibly() { delegate().awaitUninterruptibly(); } @Override public long awaitNanos(long nanosTimeout) throws InterruptedException { return delegate().awaitNanos(nanosTimeout); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 24 18:55:30 GMT 2025 - 1.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MapMakerTest.java
*/ package com.google.common.collect; import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows; import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.base.Function;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java
import static com.google.common.truth.Truth.assertWithMessage; import static com.google.common.util.concurrent.MoreExecutors.shutdownAndAwaitTermination; import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly; import static java.util.concurrent.Executors.newSingleThreadExecutor; import static java.util.concurrent.TimeUnit.SECONDS; import static org.junit.Assert.assertThrows;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 5.2K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
*/ @J2ktIncompatible @GwtIncompatible // concurrency @IgnoreJRERequirement // Users will use this only if they're already using Duration. public static boolean awaitUninterruptibly(CountDownLatch latch, Duration timeout) { return awaitUninterruptibly(latch, toNanosSaturated(timeout), NANOSECONDS); } /** * Invokes {@code latch.}{@link CountDownLatch#await(long, TimeUnit) await(timeout, unit)} * uninterruptibly.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 23:24:32 GMT 2026 - 22.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
startThread(task::run); awaitUninterruptibly(doingCallLatch); long hangDelayMillis = (expectedOutcome == Outcome.HANG) ? EXPECTED_HANG_DELAY_MILLIS : UNEXPECTED_HANG_DELAY_MILLIS; boolean hung = !awaitUninterruptibly(callCompletedLatch, hangDelayMillis, MILLISECONDS); if (hung) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
@Override public void close() throws IOException { latch.countDown(); } boolean awaitClosed() { return awaitUninterruptibly(latch, 10, SECONDS); } boolean stillOpen() { return !awaitUninterruptibly(latch, 1, SECONDS); } @Override public String toString() { return name; } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
startThread(task::run); awaitUninterruptibly(doingCallLatch); long hangDelayMillis = (expectedOutcome == Outcome.HANG) ? EXPECTED_HANG_DELAY_MILLIS : UNEXPECTED_HANG_DELAY_MILLIS; boolean hung = !awaitUninterruptibly(callCompletedLatch, hangDelayMillis, MILLISECONDS); if (hung) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.7K bytes - Click Count (0)