Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for CountDown (0.12 seconds)

  1. 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)
  2. 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)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

              throw new RuntimeException(e);
            }
            doneSignal.countDown();
          }
        }.start();
    
        try {
          computingSignal.await();
        } catch (InterruptedException e) {
          throw new RuntimeException(e);
        }
    
        map.put(one, two);
        assertThat(map.get(one)).isSameInstanceAs(two);
        startSignal.countDown();
    
        try {
          doneSignal.await();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

              throw new RuntimeException(e);
            }
            doneSignal.countDown();
          }
        }.start();
    
        try {
          computingSignal.await();
        } catch (InterruptedException e) {
          throw new RuntimeException(e);
        }
    
        map.put(one, two);
        assertThat(map.get(one)).isSameInstanceAs(two);
        startSignal.countDown();
    
        try {
          doneSignal.await();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        val requestFinishedListener =
          object : EventListener() {
            override fun requestHeadersEnd(
              call: Call,
              request: Request,
            ) {
              requestFinished.countDown()
            }
          }
        client =
          client
            .newBuilder()
            .dns(DoubleInetAddressDns())
            .eventListenerFactory(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

          }
          for (Map.Entry<AutoCloseable, Executor> entry : entrySet()) {
            closeQuietly(entry.getKey(), entry.getValue());
          }
          clear();
          if (whenClosed != null) {
            whenClosed.countDown();
          }
        }
    
        void add(@Nullable AutoCloseable closeable, Executor executor) {
          checkNotNull(executor);
          if (closeable == null) {
            return;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
Back to Top