Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TaskQueue (0.03 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

            val writerToClose = this.writer
            if (writerToClose != null) {
              this.writer = null
              taskQueue.execute("$name writer close", cancelable = false) {
                writerToClose.closeQuietly()
              }
            }
    
            this.taskQueue.shutdown()
          }
    
          sendOnClosed = !failed && writer == null && receivedCloseCode != -1
        }
    
        if (sendOnClosed) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

            }
          }
        }
    
      internal fun kickCoordinator(taskQueue: TaskQueue) {
        assertLockHeld()
    
        if (taskQueue.activeTask == null) {
          if (taskQueue.futureTasks.isNotEmpty()) {
            readyQueues.addIfAbsent(taskQueue)
          } else {
            readyQueues.remove(taskQueue)
          }
        }
    
        if (coordinatorWaiting) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

    import okhttp3.Address
    import okhttp3.ConnectionPool
    import okhttp3.Route
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.Task
    import okhttp3.internal.concurrent.TaskQueue
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.concurrent.assertLockHeld
    import okhttp3.internal.concurrent.withLock
    import okhttp3.internal.connection.RealCall.CallReference
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 03 17:10:08 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerTest.kt

          "FINE: Q10002 starting              : task three",
          "FINE: Q10002 finished run in   0 µs: task three",
        )
      }
    
      /** Test the introspection method [TaskQueue.scheduledTasks]. */
      @Test fun scheduledTasks() {
        redQueue.execute("task one", 100.µs) {
          // Do nothing.
        }
    
        redQueue.execute("task two", 200.µs) {
          // Do nothing.
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 23K bytes
    - Viewed (0)
Back to top