Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 61 for Nanoseconds (0.18 sec)

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

                "[^\\[]+\\[status=PENDING, info=\\[cause=\\[Because this test isn't done\\]\\]\\]");
        TimeoutException e =
            assertThrows(TimeoutException.class, () -> testFuture.get(1, TimeUnit.NANOSECONDS));
        assertThat(e.getMessage()).contains("1 nanoseconds");
        assertThat(e.getMessage()).contains("Because this test isn't done");
      }
    
      public void testToString_completesDuringToString() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Internal.java

    /** This class is for {@code com.google.common.base} use only! */
    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    @ElementTypesAreNonnullByDefault
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Internal.java

    /** This class is for {@code com.google.common.base} use only! */
    @J2ktIncompatible
    @GwtIncompatible // java.time.Duration
    @ElementTypesAreNonnullByDefault
    final class Internal {
    
      /**
       * Returns the number of nanoseconds of the given duration without throwing or overflowing.
       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/AbstractCache.java

         * an entry to be loaded, and the loading completes successfully. In contrast to {@link
         * #recordMisses}, this method should only be called by the loading thread.
         *
         * @param loadTime the number of nanoseconds the cache spent computing or retrieving the new
         *     value
         */
        @SuppressWarnings("GoodTime") // should accept a java.time.Duration
        void recordLoadSuccess(long loadTime);
    
        /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/SuppliersTest.java

              @Override
              public Supplier<Boolean> apply(Supplier<Boolean> supplier) {
                return Suppliers.memoizeWithExpiration(supplier, Long.MAX_VALUE, TimeUnit.NANOSECONDS);
              }
            };
        testSupplierThreadSafe(memoizer);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      public void testMemoizedSupplierThreadSafe() throws Throwable {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/SuppliersTest.java

              @Override
              public Supplier<Boolean> apply(Supplier<Boolean> supplier) {
                return Suppliers.memoizeWithExpiration(supplier, Long.MAX_VALUE, TimeUnit.NANOSECONDS);
              }
            };
        testSupplierThreadSafe(memoizer);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      public void testMemoizedSupplierThreadSafe() throws Throwable {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilderSpec.java

     * representing days, hours, minutes, or seconds respectively. (There is currently no syntax to
     * request expiration in milliseconds, microseconds, or nanoseconds.)
     *
     * <p>Whitespace before and after commas and equal signs is ignored. Keys may not be repeated; it is
     * also illegal to use the following pairs of keys in a single value:
     *
     * <ul>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheTest.java

    import static java.util.concurrent.Executors.newSingleThreadExecutor;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.MINUTES;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.base.Equivalence;
    import com.google.common.base.Ticker;
    import com.google.common.cache.LocalCache.EntryFactory;
    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)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

    import static java.util.concurrent.Executors.newSingleThreadExecutor;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.MINUTES;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.base.Equivalence;
    import com.google.common.base.Ticker;
    import com.google.common.cache.LocalCache.EntryFactory;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/LocalCache.java

          throw new ExecutionError(e);
        } finally {
          if (!success) {
            globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
          }
        }
    
        if (result == null) {
          globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
          throw new InvalidCacheLoadException(loader + " returned null map from loadAll");
        }
    
        stopwatch.stop();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top