- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,062 for latch (0.04 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 31.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exec/SuggestCreator.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 11K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt
} else { threadToCancel!!.interrupt() } latch.countDown() }.apply { start() } return latch } companion object { // The size of the socket buffers in bytes. private const val SOCKET_BUFFER_SIZE = 256 * 1024 } } class CancelModelParamProvider : SimpleProvider() { override fun arguments() = CancelTest.CancelMode.values().flatMap { c ->
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
} } } catch (Exception e) { e.printStackTrace(); } finally { latch.countDown(); } }); } // Then assertTrue(latch.await(10, TimeUnit.SECONDS)); executor.shutdown();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
CountDownLatch latch = new CountDownLatch(1); SettableFuture<?> future = SettableFuture.create(); Executor delegate = new Executor() { @Override public void execute(Runnable task) { if (future.set(null)) { awaitUninterruptibly(latch); } throw new RejectedExecutionException();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureKeyManagerTest.java
} catch (GeneralSecurityException e) { // Ignore in concurrent test } } } } finally { latch.countDown(); } }); } assertTrue(latch.await(10, TimeUnit.SECONDS), "Concurrent ops should complete");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
) server.enqueue(MockResponse(body = "ABC")) val latch = CountDownLatch(1) val responses: BlockingQueue<String?> = SynchronousQueue() val authenticator = okhttp3.Authenticator { route: Route?, response: Response? -> responses.offer(response!!.body.string()) try { latch.await() } catch (e: InterruptedException) { throw AssertionError() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/ExecJobTest.java
} latch.countDown(); }); Thread t2 = new Thread(() -> { for (int i = 0; i < 100; i++) { execJob.jvmOptions("-Xms" + i + "m"); } latch.countDown(); }); t1.start(); t2.start(); assertTrue(latch.await(5, TimeUnit.SECONDS));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 24.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
val latch = CountDownLatch(1) webServer.enqueue( MockResponse .Builder() .webSocketUpgrade( object : WebSocketListener() { override fun onOpen( webSocket: WebSocket, response: Response, ) { try { latch.await() // The server can't respond to pings!
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 35.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
WebApiUtil.validate(); } catch (Exception e) { errorCount.incrementAndGet(); } finally { latch.countDown(); } }).start(); } try { latch.await(); } catch (InterruptedException e) { Thread.currentThread().interrupt();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 17.1K bytes - Viewed (0)