Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for multipleCallsToIdleLatchReturnSameInstance (0.17 sec)

  1. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

        assertThat(idleLatch.count).isEqualTo(1)
    
        taskFaker.advanceUntil(0.µs)
        assertThat(log).containsExactly("run@0")
    
        assertThat(idleLatch.count).isEqualTo(0)
      }
    
      @Test fun multipleCallsToIdleLatchReturnSameInstance() {
        redQueue.execute("task") {
          log += "run@${taskFaker.nanoTime}"
        }
    
        val idleLatch1 = redQueue.idleLatch()
        val idleLatch2 = redQueue.idleLatch()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top