Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readAndWriteOverlapsMaintainConsistency (0.11 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

      }
    
      /**
       * Each read sees a snapshot of the file at the time read was called. This means that two reads of
       * the same key can see different data.
       */
      @Test
      fun readAndWriteOverlapsMaintainConsistency() {
        Assumptions.assumeFalse(windows) // Can't edit while a read is in progress.
    
        val v1Creator = cache.edit("k1")!!
        v1Creator.setString(0, "AAaa")
        v1Creator.setString(1, "BBbb")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 59.4K bytes
    - Viewed (0)
Back to top