Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for scheduleThrowsWhenShutdown (0.11 sec)

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

        }
    
        taskFaker.assertNoMoreTasks()
    
        assertThat(testLogHandler.takeAll()).containsExactly(
          "FINE: Q10000 schedule canceled (queue is shutdown): task",
        )
      }
    
      @Test fun scheduleThrowsWhenShutdown() {
        redQueue.shutdown()
    
        assertFailsWith<RejectedExecutionException> {
          redQueue.schedule(
            object : Task("task", cancelable = false) {
              override fun runOnce(): Long {
    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