Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 125 for countdown (0.1 seconds)

  1. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorConcurrencyTest.java

                                Thread.currentThread().interrupt();
                            } finally {
                                endLatch.countDown();
                            }
                        });
                    }
    
                    startLatch.countDown(); // Start all threads simultaneously
                    assertTrue("Concurrent registration timed out", endLatch.await(10, TimeUnit.SECONDS));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        @Override
        public void run() {
          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        boolean wasCalled() {
          return calledCountDown.getCount() == 0;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

              e: IOException,
            ) {
              exceptionRef.set(e)
              latch.countDown()
            }
    
            @Throws(IOException::class)
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              response.close()
              latch.countDown()
            }
          },
        )
        latch.await()
        assertThat(call.isCanceled()).isTrue()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

                () -> {
                  enterLatch.countDown();
                  new CountDownLatch(1).await(); // wait forever
                  return immediateFuture(null);
                });
        assertFalse(task.isDone());
        Thread thread =
            new Thread(
                () -> {
                  try {
                    task.run();
                  } finally {
                    exitLatch.countDown();
                  }
                },
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                            startLatch.await();
                            response.received();
                            endLatch.countDown();
                        } catch (InterruptedException e) {
                            // Ignore
                        }
                    }).start();
                }
    
                startLatch.countDown();
                assertTrue(endLatch.await(1, TimeUnit.SECONDS));
                assertTrue(response.isReceived());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                    } catch (InterruptedException e) {
                        Thread.currentThread().interrupt();
                    } finally {
                        endLatch.countDown();
                    }
                });
            }
    
            startLatch.countDown(); // Start all threads
            assertTrue(endLatch.await(30, TimeUnit.SECONDS), "All threads should complete within timeout");
            executor.shutdown();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            cache.getUnchecked(getKey);
            getFinishedSignal.countDown();
          }
        }.start();
        new Thread() {
          @Override
          public void run() {
            cache.refresh(refreshKey);
            getFinishedSignal.countDown();
          }
        }.start();
    
        // let computation complete
        letGetFinishSignal.countDown();
        getFinishedSignal.await();
        checkNothingLogged();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        CountDownLatch gotException = new CountDownLatch(1);
        AsyncFunction<String, String> function =
            unused -> {
              inFunction.countDown();
              try {
                shouldCompleteFunction.await();
              } catch (InterruptedException expected) {
                gotException.countDown();
                throw expected;
              }
              return immediateFuture("a");
            };
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        CountDownLatch gotException = new CountDownLatch(1);
        AsyncFunction<String, String> function =
            unused -> {
              inFunction.countDown();
              try {
                shouldCompleteFunction.await();
              } catch (InterruptedException expected) {
                gotException.countDown();
                throw expected;
              }
              return immediateFuture("a");
            };
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        @Override
        public void run() {
          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        boolean wasCalled() {
          return calledCountDown.getCount() == 0;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
Back to Top