Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for react (0.33 sec)

  1. android/guava/src/com/google/common/eventbus/EventBus.java

     *
     * <h2>Avoid EventBus</h2>
     *
     * <p><b>We recommend against using EventBus.</b> It was designed many years ago, and newer
     * libraries offer better ways to decouple components and react to events.
     *
     * <p>To decouple components, we recommend a dependency-injection framework. For Android code, most
     * apps use <a href="https://dagger.dev">Dagger</a>. For server code, common options include <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K 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. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          this.actionWhenFirstParamIsNull = actionWhenFirstParamIsNull;
          this.actionWhenSecondParamIsNull = actionWhenSecondParamIsNull;
        }
    
        /** Method that decides how to react to parameters. */
        public void reactToNullParameters(@Nullable Object first, @Nullable Object second) {
          if (first == null) {
            actionWhenFirstParamIsNull.act();
          }
          if (second == null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top