Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Nevett (0.17 sec)

  1. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        bus.post(EVENT);
        bus.register(catcher2);
        bus.post(EVENT);
    
        List<String> expectedEvents = Lists.newArrayList();
        expectedEvents.add(EVENT);
        expectedEvents.add(EVENT);
    
        assertEquals("Two correct events should be delivered.", expectedEvents, catcher1.getEvents());
    
        assertEquals(
            "One correct event should be delivered.", Lists.newArrayList(EVENT), catcher2.getEvents());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        bus.post(EVENT);
        bus.register(catcher2);
        bus.post(EVENT);
    
        List<String> expectedEvents = Lists.newArrayList();
        expectedEvents.add(EVENT);
        expectedEvents.add(EVENT);
    
        assertEquals("Two correct events should be delivered.", expectedEvents, catcher1.getEvents());
    
        assertEquals(
            "One correct event should be delivered.", Lists.newArrayList(EVENT), catcher2.getEvents());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

              if (nanos == expirationNanos) { // recheck for lost race
                T t = delegate.get();
                value = t;
                nanos = now + durationNanos;
                // In the very unlikely event that nanos is 0, set it to 1;
                // no one will notice 1 ns of tardiness.
                expirationNanos = (nanos == 0) ? 1 : nanos;
                return t;
              }
            }
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Monitor.java

      //         break;
      //       }
      //     }
      //   }
    
      /**
       * Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully
       * unlikely) event that isSatisfied() throws.
       */
      @GuardedBy("lock")
      private boolean isSatisfied(Guard guard) {
        try {
          return guard.isSatisfied();
        } catch (Throwable throwable) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *       listeners can harm responsiveness, slow the system as a whole, or worse. (See also the
       *       note about locking below.)
       *   <li>If many tasks will be triggered by the same event, one heavyweight task may delay other
       *       tasks -- even tasks that are not themselves {@code directExecutor} tasks.
       *   <li>If many such tasks are chained together (such as with {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        SettableFuture<String> future2 = SettableFuture.create();
        ListenableFuture<List<String>> compound = allAsList(future1, future2);
        // There was a bug where the event listener for the combined future would
        // result in the sub-futures being cancelled without being interrupted.
        ListenableFuture<List<String>> otherCompound = allAsList(future1, future2);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * specified the JVM flag {@code -XX:+DisableExplicitGC}. But in practice, it works very well for
     * ordinary tests.
     *
     * <p>Failure of the expected event to occur within an implementation-defined "reasonable" time
     * period or an interrupt while waiting for the expected event will result in a {@link
     * RuntimeException}.
     *
     * <p>Here's an example that tests a {@code finalize} method:
     *
     * <pre>{@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

       * </ul>
       *
       * <p>This method is {@code protected} so that classes like {@code
       * com.google.common.util.concurrent.SettableFuture} do not expose it to their users as an
       * instance method. In the unlikely event that you need to call this method, call {@link
       * InternalFutures#tryInternalFastPathGetFailure(InternalFutureFailureAccess)}.
       *
       * @since 27.0
       */
      @Override
      /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        SettableFuture<String> future2 = SettableFuture.create();
        ListenableFuture<List<String>> compound = allAsList(future1, future2);
        // There was a bug where the event listener for the combined future would
        // result in the sub-futures being cancelled without being interrupted.
        ListenableFuture<List<String>> otherCompound = allAsList(future1, future2);
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

      /** How long after the last write an entry becomes a candidate for refresh. */
      final long refreshNanos;
    
      /** Entries waiting to be consumed by the removal listener. */
      // TODO(fry): define a new type which creates event objects and automates the clear logic
      final Queue<RemovalNotification<K, V>> removalNotificationQueue;
    
      /**
       * A listener that is invoked when an entry is removed due to expiration or garbage collection of
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top