- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 42 for awaitTermination (0.1 sec)
-
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
} Thread.sleep(500); } assertEquals(CrawlerStatus.RUNNING, crawler2.crawlerContext.getStatus()); crawler1.awaitTermination(); crawler2.awaitTermination(); assertEquals(maxCount, dataService.getCount(sessionId1)); assertEquals(maxCount, dataService.getCount(sessionId2)); UrlQueue urlQueue;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 7.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
assertEquals(CrawlerStatus.RUNNING, crawler1.crawlerContext.getStatus()); assertEquals(CrawlerStatus.RUNNING, crawler2.crawlerContext.getStatus()); crawler1.awaitTermination(); crawler2.awaitTermination(); assertEquals(maxCount, dataService.getCount(sessionId1)); assertEquals(maxCount, dataService.getCount(sessionId2)); UrlQueue urlQueue;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 18K bytes - Viewed (0) -
fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
assertEquals(CrawlerStatus.RUNNING, crawler1.crawlerContext.getStatus()); assertEquals(CrawlerStatus.RUNNING, crawler2.crawlerContext.getStatus()); crawler1.awaitTermination(); crawler2.awaitTermination(); assertEquals(maxCount, dataService.getCount(sessionId1)); assertEquals(maxCount, dataService.getCount(sessionId2)); UrlQueue urlQueue;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 11.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java
assertTrue(future.isDone()); assertTrue(successLatch.await(200, MILLISECONDS)); assertTrue(listenerLatch.await(200, MILLISECONDS)); latch.countDown(); exec.shutdown(); exec.awaitTermination(100, MILLISECONDS); } /** * Tests that all listeners complete, even if they were added before or after the future was
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 18:30:30 UTC 2023 - 6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java
} @Override public boolean isTerminated() { return delegate.isTerminated(); } @Override public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { Preconditions.checkNotNull(unit, "unit must not be null!"); return delegate.awaitTermination(timeout, unit); } @Override public <T> ListenableFuture<T> submit(Callable<T> task) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java
} @Override public boolean isTerminated() { return delegate.isTerminated(); } @Override public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { Preconditions.checkNotNull(unit, "unit must not be null!"); return delegate.awaitTermination(timeout, unit); } @Override public <T> ListenableFuture<T> submit(Callable<T> task) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/ConcurrencyTest.java
this.executor = Executors.newCachedThreadPool(); } @After @Override public void tearDown () throws Exception { this.executor.shutdown(); this.executor.awaitTermination(10, TimeUnit.SECONDS); super.tearDown(); } @Test public void testExclusiveLock () throws InterruptedException, MalformedURLException, UnknownHostException {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Nov 14 17:40:50 UTC 2021 - 17.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java
} } return threadSum; } })); } threadPool.shutdown(); assertTrue(threadPool.awaitTermination(300, SECONDS)); long sum = 0; for (Future<Long> f : futures) { sum += f.get(); } assertEquals(sum, map.get(key)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 4.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RecordingExecutor.kt
} override fun isShutdown(): Boolean { return shutdown } override fun isTerminated(): Boolean { throw UnsupportedOperationException() } override fun awaitTermination( timeout: Long, unit: TimeUnit, ): Boolean { throw UnsupportedOperationException() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
assertThat(future2.isDone()).isFalse(); // Stop the first task. The second task should then run. blockingCallable.stop(); executor.shutdown(); assertThat(executor.awaitTermination(10, SECONDS)).isTrue(); assertThat(getDone(future2)).isFalse(); } public void testSecondTaskWaitsForFirstEvenIfCancelled() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0)