Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sourceReader (0.05 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

      @Test
      fun racingReaders() {
        val pipe = Pipe(1024)
        val sink = pipe.sink.buffer()
        val relay = edit(file, pipe.source, metadata, 5)
        val future1 = executor.submit(sourceReader(relay.newSource()))
        val future2 = executor.submit(sourceReader(relay.newSource()))
        Thread.sleep(500)
        sink.writeUtf8("abcdefghij")
        Thread.sleep(500)
        sink.writeUtf8("klmnopqrst")
        sink.close()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HeadersTest.kt

          |
          """.trimMargin(),
        )
      }
    
      @Test fun headersAddAll() {
        val sourceHeaders =
          Headers.Builder()
            .add("A", "aa")
            .add("a", "aa")
            .add("B", "bb")
            .build()
        val headers =
          Headers.Builder()
            .add("A", "a")
            .addAll(sourceHeaders)
            .add("C", "c")
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top