Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 102 for NOW (0.12 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

                        "Error while attempting to shut down the service after failure.",
                        ignored);
              }
              notifyFailed(t);
              // requireNonNull is safe now, just as it was above.
              requireNonNull(runningTask).cancel(false); // prevent future invocations.
            } finally {
              lock.unlock();
            }
          }
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

                //
                // If we were to cancel taskFuture, that would let the next task start while the old
                // one is still running.
                //
                // Now, maybe we could tweak our implementation to not start the next task until the
                // callable actually completes. (We could detect completion in our wrapper
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/ThrowablesTest.java

        if (javaVersion != null && javaVersion >= 9) {
          return;
        }
        // Obviously this isn't guaranteed in every environment, but it works well enough for now:
        assertTrue(lazyStackTraceIsLazy());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // lazyStackTrace(Throwable)
      public void testLazyStackTrace() {
        Exception e = new Exception();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        if (javaVersion != null && javaVersion >= 9) {
          return;
        }
        // Obviously this isn't guaranteed in every environment, but it works well enough for now:
        assertTrue(lazyStackTraceIsLazy());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // lazyStackTrace(Throwable)
      public void testLazyStackTrace() {
        Exception e = new Exception();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/Striped64.java

                      created = true;
                    }
                  } finally {
                    busy = 0;
                  }
                  if (created) break;
                  continue; // Slot is now non-empty
                }
              }
              collide = false;
            } else if (!wasUncontended) // CAS already known to fail
            wasUncontended = true; // Continue after rehash
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/LongMath.java

          long minDeltaOrZero = delta & (delta >> (Long.SIZE - 1));
          // equivalent to Math.min(delta, 0)
    
          a = delta - minDeltaOrZero - minDeltaOrZero; // sets a to Math.abs(a - b)
          // a is now nonnegative and even
    
          b += minDeltaOrZero; // sets b to min(old a, b)
          a >>= Long.numberOfTrailingZeros(a); // divide out all 2s, since 2 doesn't divide b
        }
        return a << min(aTwos, bTwos);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

        }
    
        /*
         * TODO(cpovirk): `return (V) removedValue` once our checker permits that.
         *
         * (We promoted a class of warnings into errors because sometimes they indicate real problems.
         * But now we need to "undo" some instance of spurious errors, as discussed in
         * https://github.com/jspecify/checker-framework/issues/8.)
         */
        return removedValue == null ? null : (V) removedValue;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 18K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      // Technically we should test other reentrant scenarios (9 combinations of
      // hasNext/next/peek), but we'll cop out for now, knowing that peek() and
      // next() both start by invoking hasNext() anyway.
    
      /** Throws an undeclared checked exception. */
      private static void sneakyThrow(Throwable t) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        f1.cancel(true);
        assertTrue(f2.isCancelled());
        /*
         * We might like to propagate interruption, too, but it's not clear that it matters. For now, we
         * test for the behavior that we have today.
         */
        assertFalse(((AbstractFuture<?>) f2).wasInterrupted());
      }
    
      /*
    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-tests/test/com/google/common/cache/LocalCacheTest.java

      private static <K, V> int countLiveEntries(LocalCache<K, V> map, long now) {
        int result = 0;
        for (Segment<K, V> segment : map.segments) {
          AtomicReferenceArray<ReferenceEntry<K, V>> table = segment.table;
          for (int i = 0; i < table.length(); i++) {
            for (ReferenceEntry<K, V> e = table.get(i); e != null; e = e.getNext()) {
              if (map.isLive(e, now)) {
                result++;
              }
            }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
Back to top