Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 103 for CountDown (0.52 seconds)

  1. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        Object unused =
            new Object() {
              @SuppressWarnings({"removal", "Finalize"}) // b/487687332
              @Override
              protected void finalize() {
                latch.countDown();
              }
            };
        unused = null; // Hint to the JIT that unused is unreachable
        GcFinalization.await(latch);
        assertEquals(0, latch.getCount());
      }
    
      public void testAwaitDone_future() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

          invokeOnExecutionThreadForTest(
              () -> {
                assertEquals(State.STARTING, state());
                notifyStarted();
                assertEquals(State.RUNNING, state());
                hasConfirmedIsRunning.countDown();
              });
        }
    
        @Override
        protected void doStop() {
          assertEquals(State.STOPPING, state());
          invokeOnExecutionThreadForTest(
              () -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

          invokeOnExecutionThreadForTest(
              () -> {
                assertEquals(State.STARTING, state());
                notifyStarted();
                assertEquals(State.RUNNING, state());
                hasConfirmedIsRunning.countDown();
              });
        }
    
        @Override
        protected void doStop() {
          assertEquals(State.STOPPING, state());
          invokeOnExecutionThreadForTest(
              () -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

              @Override
              public void failure(Service service) {
                failEnter.countDown();
                // block until after the service manager is shutdown
                Uninterruptibles.awaitUninterruptibly(failLeave);
              }
            },
            directExecutor());
        manager.startAsync();
        afterStarted.countDown();
        // We do not call awaitHealthy because, due to races, that method may throw an exception.  But
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        final Lock lock;
    
        LockingThread(Lock lock) {
          this.lock = lock;
        }
    
        @Override
        public void run() {
          lock.lock();
          try {
            locked.countDown();
            finishLatch.await(1, MINUTES);
          } catch (InterruptedException e) {
            fail(e.toString());
          } finally {
            lock.unlock();
          }
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        final Lock lock;
    
        LockingThread(Lock lock) {
          this.lock = lock;
        }
    
        @Override
        public void run() {
          lock.lock();
          try {
            locked.countDown();
            finishLatch.await(1, MINUTES);
          } catch (InterruptedException e) {
            fail(e.toString());
          } finally {
            lock.unlock();
          }
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                () -> {
                  computationStarted.countDown();
                  cache.getUnchecked("b");
                  computationComplete.countDown();
                })
            .start();
    
        // wait for the computingEntry to be created
        computationStarted.await();
        cache.invalidateAll();
        // let the computation proceed
        computingLatch.countDown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                () -> {
                  computationStarted.countDown();
                  cache.getUnchecked("b");
                  computationComplete.countDown();
                })
            .start();
    
        // wait for the computingEntry to be created
        computationStarted.await();
        cache.invalidateAll();
        // let the computation proceed
        computingLatch.countDown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          arguments.add(Duration.ofMillis(timeout.millis));
        }
        try {
          Object result;
          doingCallLatch.countDown();
          try {
            result = method.invoke(monitor, arguments.toArray());
          } finally {
            callCompletedLatch.countDown();
          }
          if (result == null) {
            return Outcome.SUCCESS;
          } else if ((Boolean) result) {
            return Outcome.SUCCESS;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.7K bytes
    - Click Count (0)
  10. 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)
Back to Top