- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 97 for CountDownLatch (0.07 sec)
-
mockwebserver/src/main/kotlin/mockwebserver3/Dispatcher.kt
import java.io.Closeable /** Handler for mock server requests. */ public abstract class Dispatcher : Closeable { /** * Returns a response to satisfy `request`. This method may block (for instance, to wait on * a CountdownLatch). */ @Throws(InterruptedException::class) public abstract fun dispatch(request: RecordedRequest): MockResponse /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 1.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ConcurrentNavigableMap; import java.util.concurrent.ConcurrentSkipListMap; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Executor; import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 21.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
import java.net.ProtocolException import java.net.SocketTimeoutException import java.time.Duration import java.util.Arrays import java.util.Collections import java.util.Random import java.util.concurrent.CountDownLatch import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicInteger import kotlin.test.assertFailsWith import mockwebserver3.Dispatcher import mockwebserver3.MockResponse
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
import assertk.assertions.isEqualTo import java.io.IOException import java.net.Inet4Address import java.net.Inet6Address import java.net.InetAddress import java.net.Socket import java.util.concurrent.CountDownLatch import java.util.concurrent.TimeUnit import javax.net.SocketFactory import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/ExecJobTest.java
} } // Test concurrent modification of jvmOptions public void test_jvmOptions_concurrent() throws InterruptedException { CountDownLatch latch = new CountDownLatch(2); Thread t1 = new Thread(() -> { for (int i = 0; i < 100; i++) { execJob.jvmOptions("-Xmx" + i + "m"); } latch.countDown();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java
public void test_run_basicFlow() throws Exception { final List<String> sessionIdList = Arrays.asList("session1"); indexUpdater.setSessionIdList(sessionIdList); final CountDownLatch latch = new CountDownLatch(1); final AtomicBoolean errorOccurred = new AtomicBoolean(false); indexUpdater.setUncaughtExceptionHandler((t, e) -> { errorOccurred.set(true); latch.countDown();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 33K bytes - Viewed (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); } } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 23 15:26:56 UTC 2025 - 97.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterTest.java
bulkRequestBuilder.add(indexRequestBuilder); } bulkRequestBuilder.execute().actionGet(); runner.refresh(); CountDownLatch latch = new CountDownLatch(1); AtomicInteger numObInputDoc = new AtomicInteger(0); ESSourceReader reader = new ESSourceReader(client, suggester.settings(), indexName); reader.setScrollSize(1000);
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 37.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
} } public void test_thread_safety() { // Test thread safety of utility methods final int threadCount = 10; final java.util.concurrent.CountDownLatch latch = new java.util.concurrent.CountDownLatch(threadCount); final java.util.concurrent.atomic.AtomicInteger errorCount = new java.util.concurrent.atomic.AtomicInteger(0); for (int i = 0; i < threadCount; i++) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 17.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
} } private static final class PollingThread extends Thread { private final AbstractFuture<?> future; private final CountDownLatch completedIteration = new CountDownLatch(10); private PollingThread(AbstractFuture<?> future) { this.future = future; } @Override public void run() { while (true) { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0)