Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for interruptCoordinatorThread (0.78 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerTest.kt

        redQueue.execute("task", 100.µs) {
          log += "run@${taskFaker.nanoTime}"
        }
    
        taskFaker.advanceUntil(0.µs)
        assertThat(log).isEmpty()
    
        taskFaker.interruptCoordinatorThread()
    
        taskFaker.advanceUntil(0.µs)
        assertThat(log).isEmpty()
    
        taskFaker.assertNoMoreTasks()
    
        assertThat(testLogHandler.takeAll()).containsExactly(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 23K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        taskRunner.assertLockNotHeld()
    
        taskRunner.withLock {
          assertThat(activeThreads).isEqualTo(0)
        }
      }
    
      /** Unblock a waiting task thread. Used by the test thread only. */
      fun interruptCoordinatorThread() {
        taskRunner.assertLockNotHeld()
        require(currentTask == TestThreadSerialTask)
    
        // Queue a task to interrupt the waiting coordinator.
        serialTaskQueue +=
          object : SerialTask {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top