Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for react (0.27 sec)

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

     *       SHORT is always discriminable from zero time, and always allows enough time for the small
     *       amounts of computation (creating a thread, calling a few methods, etc) needed to reach a
     *       timeout point. Similarly, a SMALL is always discriminable as larger than SHORT and smaller
     *       than MEDIUM. And so on. These constants are set to conservative values, but even so, if
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractService.java

          // even check the guard. I don't think we care too much about this use case but it could lead
          // to a confusing error message.
          throw new TimeoutException("Timed out waiting for " + this + " to reach the RUNNING state.");
        }
      }
    
      @Override
      public final void awaitTerminated() {
        monitor.enterWhenUninterruptibly(isStopped);
        try {
          checkCurrentState(TERMINATED);
        } finally {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

            assertThrows(
                TimeoutException.class, () -> service.startAsync().awaitRunning(1, MILLISECONDS));
        assertThat(e)
            .hasMessageThat()
            .isEqualTo("Timed out waiting for Foo [STARTING] to reach the RUNNING state.");
      }
    
      private class TestService extends AbstractScheduledService {
        CyclicBarrier runFirstBarrier = new CyclicBarrier(2);
        CyclicBarrier runSecondBarrier = new CyclicBarrier(2);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          // should never reach here!
          throw new UnsupportedOperationException();
        }
    
        @Override
        public Entry<K, V> belowSamplesGreater() {
          // should never reach here!
          throw new UnsupportedOperationException();
        }
    
        @Override
        public Entry<K, V> aboveSamplesLesser() {
          // should never reach here!
          throw new UnsupportedOperationException();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

      }
    
      /**
       * Waits for the all the services to reach a terminal state. After this method returns all
       * services will either be {@linkplain Service.State#TERMINATED terminated} or {@linkplain
       * Service.State#FAILED failed}.
       */
      public void awaitStopped() {
        state.awaitStopped();
      }
    
      /**
       * Waits for the all the services to reach a terminal state for no more than the given time. After
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

                TimeoutException.class,
                () -> service.startAsync().awaitRunning(1, TimeUnit.MILLISECONDS));
        assertThat(e)
            .hasMessageThat()
            .isEqualTo("Timed out waiting for Foo [STARTING] to reach the RUNNING state.");
      }
    
      private static class TestService extends AbstractIdleService {
        int startUpCalled = 0;
        int shutDownCalled = 0;
        final List<State> transitionStates = Lists.newArrayList();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

                TimeoutException.class,
                () -> service.startAsync().awaitRunning(1, TimeUnit.MILLISECONDS));
        assertThat(e)
            .hasMessageThat()
            .isEqualTo("Timed out waiting for Foo [STARTING] to reach the RUNNING state.");
      }
    
      private class FakeService extends AbstractExecutionThreadService implements TearDown {
    
        private final ExecutorService executor = Executors.newSingleThreadExecutor();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Striped64.java

       * than CPUs, supposing that each thread were bound to a CPU,
       * there would exist a perfect hash function mapping threads to
       * slots that eliminates collisions. When we reach capacity, we
       * search for this mapping by randomly varying the hash codes of
       * colliding threads.  Because search is random, and collisions
       * only become known via CAS failures, convergence can be slow,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

            assertThrows(
                TimeoutException.class, () -> service.startAsync().awaitRunning(1, MILLISECONDS));
        assertThat(e)
            .hasMessageThat()
            .isEqualTo("Timed out waiting for Foo [STARTING] to reach the RUNNING state.");
      }
    
      private class TestService extends AbstractScheduledService {
        CyclicBarrier runFirstBarrier = new CyclicBarrier(2);
        CyclicBarrier runSecondBarrier = new CyclicBarrier(2);
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        if (waiter.isAlive()) {
          waiter.interrupt();
          fail("awaitTermination failed to trigger after shutdown()");
        }
      }
    
      /** Wait for the given thread to reach the {@link State#TIMED_WAITING} thread state. */
      void awaitTimedWaiting(Thread thread) {
        while (true) {
          switch (thread.getState()) {
            case BLOCKED:
            case NEW:
            case RUNNABLE:
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (3)
Back to top