Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for runningCallsCount (0.08 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt

      fun runningCalls(): List<Call> = (runningSyncCalls + runningAsyncCalls.map { it.call }).unmodifiable()
    
      @Synchronized
      fun queuedCallsCount(): Int = readyAsyncCalls.size
    
      @Synchronized
      fun runningCallsCount(): Int = runningAsyncCalls.size + runningSyncCalls.size
    
      @JvmName("-deprecated_executorService")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "executorService"),
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 14:16:22 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt

        val a5 = client.newCall(newRequest("http://a/5"))
        a1.enqueue(callback)
        a2.enqueue(callback)
        a3.enqueue(callback)
        a4.enqueue(callback)
        a5.enqueue(callback)
        assertThat(dispatcher.runningCallsCount()).isEqualTo(3)
        assertThat(dispatcher.queuedCallsCount()).isEqualTo(2)
        assertThat(dispatcher.runningCalls())
          .containsExactlyInAnyOrder(a1, a2, a3)
        assertThat(dispatcher.queuedCalls())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top