Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 103 for CountDown (0.39 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                      started.countDown();
                      try {
                        return method.invoke(delegate, args);
                      } catch (InvocationTargetException e) {
                        throw e.getCause();
                      } finally {
                        awaitUninterruptibly(canReturn);
                        returned.countDown();
                      }
                    }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

      @Param Impl impl;
    
      @Param({"1", "5", "10"})
      int numListeners;
    
      private final Runnable listener =
          new Runnable() {
            @Override
            public void run() {
              listenerLatch.countDown();
            }
          };
    
      @BeforeExperiment
      void setUp() throws Exception {
        executorService =
            new ThreadPoolExecutor(
                NUM_THREADS,
                NUM_THREADS,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/ExecJobTest.java

                    execJob.jvmOptions("-Xmx" + i + "m");
                }
                latch.countDown();
            });
    
            Thread t2 = new Thread(() -> {
                for (int i = 0; i < 100; i++) {
                    execJob.jvmOptions("-Xms" + i + "m");
                }
                latch.countDown();
            });
    
            t1.start();
            t2.start();
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

        val latch = CountDownLatch(1)
        Thread {
          sleep(delayMillis)
          if (cancelMode == CANCEL) {
            call.cancel()
          } 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
      }
    }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

            .addNetworkInterceptor(
              Interceptor { chain ->
                try {
                  chain.proceed(chain.request())
                } finally {
                  firstConnectLatch.countDown()
                }
              },
            ).build()
    
        // Set up a same-connection retry.
        serverIpv4.enqueue(
          MockResponse
            .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        Future<?> first = blocked.submit(() -> executor.execute(Runnables.doNothing()));
        future.get(10, SECONDS);
        assertThrows(RejectedExecutionException.class, () -> executor.execute(Runnables.doNothing()));
        latch.countDown();
        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> first.get(10, SECONDS));
        assertThat(expected).hasCauseThat().isInstanceOf(RejectedExecutionException.class);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ScheduledThreadPoolExecutor delegate =
            new ScheduledThreadPoolExecutor(1) {
              @Override
              protected void afterExecute(Runnable r, Throwable t) {
                completed.countDown();
              }
            };
        ListeningScheduledExecutorService service = listeningDecorator(delegate);
        ListenableFuture<Integer> future = service.schedule(Callables.returning(42), 1, MILLISECONDS);
    
        /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  8. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

                        ps.println(line);
                    }
                } catch (Exception e) {
                    e.printStackTrace();
                } finally {
                    latch.countDown();
                }
            }).start();
            return os;
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Sep 23 13:49:45 GMT 2025
    - 12K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

                            }
                        }
                    } catch (final Exception e) {
                        errors.incrementAndGet();
                    }
                }));
            }
    
            startLatch.countDown();
            for (final Future<?> future : futures) {
                future.get();
            }
    
            executor.shutdown();
            assertEquals(0, errors.get());
            engine.close();
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

      @Param Impl impl;
    
      @Param({"1", "5", "10"})
      int numListeners;
    
      private final Runnable listener =
          new Runnable() {
            @Override
            public void run() {
              listenerLatch.countDown();
            }
          };
    
      @BeforeExperiment
      void setUp() throws Exception {
        executorService =
            new ThreadPoolExecutor(
                NUM_THREADS,
                NUM_THREADS,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top