Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for noMoreThanOneWorkerThreadWaitingToStartAtATime (0.29 sec)

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

        redQueue.cancelAll()
        assertThat(taskFaker.executeCallCount).isEqualTo(1)
    
        blueQueue.cancelAll()
        assertThat(taskFaker.executeCallCount).isEqualTo(1)
      }
    
      @Test fun noMoreThanOneWorkerThreadWaitingToStartAtATime() {
        // Enqueueing the red task starts a thread because the head of the queue changed.
        redQueue.execute("red task") {
          log += "red:starting@${taskFaker.nanoTime}"
          taskFaker.sleep(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