- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for CountDownLatch (0.07 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
SettableFuture<String> input = SettableFuture.create(); CountDownLatch inFunction = new CountDownLatch(1); CountDownLatch shouldCompleteFunction = new CountDownLatch(1); CountDownLatch gotException = new CountDownLatch(1); AsyncFunction<String, String> function = unused -> { inFunction.countDown(); try {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
SettableFuture<String> input = SettableFuture.create(); CountDownLatch inFunction = new CountDownLatch(1); CountDownLatch shouldCompleteFunction = new CountDownLatch(1); CountDownLatch gotException = new CountDownLatch(1); AsyncFunction<String, String> function = unused -> { inFunction.countDown(); try {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 134K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertThat(map).hasSize(1); } public void testCopyEntry_computing() { CountDownLatch startSignal = new CountDownLatch(1); CountDownLatch computingSignal = new CountDownLatch(1); CountDownLatch doneSignal = new CountDownLatch(2); Object computedObject = new Object(); CacheLoader<Object, Object> loader = new CacheLoader<Object, Object>() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 114.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
assertThat(notifications).isEmpty(); } public void testCopyEntry_computing() { CountDownLatch startSignal = new CountDownLatch(1); CountDownLatch computingSignal = new CountDownLatch(1); CountDownLatch doneSignal = new CountDownLatch(2); Object computedObject = new Object(); CacheLoader<Object, Object> loader = new CacheLoader<Object, Object>() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 116.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
*/ CountDownLatch whenClosedCountDown() { if (closed) { return new CountDownLatch(0); } synchronized (this) { if (closed) { return new CountDownLatch(0); } checkState(whenClosed == null); return whenClosed = new CountDownLatch(1); } } } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 101.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
import java.net.UnknownHostException import java.net.UnknownServiceException import java.time.Duration import java.util.Arrays import java.util.concurrent.BlockingQueue import java.util.concurrent.CountDownLatch import java.util.concurrent.Executors import java.util.concurrent.SynchronousQueue import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicBoolean import java.util.concurrent.atomic.AtomicInteger
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0)