Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for removeLoadingValue (0.14 seconds)

  1. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // absent
        assertThat(segment.removeLoadingValue(key, hash, valueRef)).isFalse();
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertThat(segment.removeLoadingValue(key, hash, valueRef)).isTrue();
        // no notification sent with removeLoadingValue
        assertThat(map.removalNotificationQueue.isEmpty()).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // absent
        assertThat(segment.removeLoadingValue(key, hash, valueRef)).isFalse();
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertThat(segment.removeLoadingValue(key, hash, valueRef)).isTrue();
        // no notification sent with removeLoadingValue
        assertThat(map.removalNotificationQueue.isEmpty()).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  3. guava/src/com/google/common/cache/LocalCache.java

                throw new AssertionError("impossible; Futures.immediateFuture can't throw");
              }
            } else if (createNewEntry || valueReference.isLoading()) {
              removeLoadingValue(key, hash, computingValueReference);
              return null;
            } else {
              removeEntry(e, hash, RemovalCause.EXPLICIT);
              return null;
            }
          } finally {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/cache/LocalCache.java

            return value;
          } finally {
            if (value == null) {
              statsCounter.recordLoadException(loadingValueReference.elapsedNanos());
              removeLoadingValue(key, hash, loadingValueReference);
            }
          }
        }
    
        V scheduleRefresh(
            ReferenceEntry<K, V> entry,
            K key,
            int hash,
            V oldValue,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
Back to Top