Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cancelAllWhenEmptyDoesNotStartWorkerThread (0.2 sec)

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

        }
    
        val idleLatch1 = redQueue.idleLatch()
        val idleLatch2 = redQueue.idleLatch()
        assertThat(idleLatch2).isSameAs(idleLatch1)
      }
    
      @Test fun cancelAllWhenEmptyDoesNotStartWorkerThread() {
        redQueue.execute("red task", 100.µs) {
          error("expected to be canceled")
        }
        assertThat(taskFaker.executeCallCount).isEqualTo(1)
    
        blueQueue.execute("task", 100.µs) {
    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