Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for asyncReloading (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/cache/CacheLoader.java

       * as {@linkplain #reload the default implementation}.
       *
       * @since 17.0
       */
      @GwtIncompatible // Executor + Futures
      public static <K, V> CacheLoader<K, V> asyncReloading(
          CacheLoader<K, V> loader, Executor executor) {
        checkNotNull(loader);
        checkNotNull(executor);
        return new CacheLoader<K, V>() {
          @Override
          public V load(K key) throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java

        assertThat(reloadCount.get()).isEqualTo(1);
        assertThat(loadAllCount.get()).isEqualTo(1);
    
        QueuingExecutor executor = new QueuingExecutor();
        CacheLoader<Object, Object> asyncReloader = CacheLoader.asyncReloading(baseLoader, executor);
    
        Object unused3 = asyncReloader.load(new Object());
        @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 3.8K bytes
    - Click Count (0)
Back to Top