Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AsyncCall (0.04 sec)

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

            val asyncCall = executableCalls[i]
            asyncCall.callsPerHost.decrementAndGet()
    
            synchronized(this) {
              runningAsyncCalls.remove(asyncCall)
            }
    
            asyncCall.failRejected()
          }
          idleCallback?.run()
        } else {
          for (i in 0 until executableCalls.size) {
            val asyncCall = executableCalls[i]
            asyncCall.executeOn(executorService)
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

        )
    
      internal fun redactedUrl(): String = originalRequest.url.redact()
    
      inner class AsyncCall(
        private val responseCallback: Callback,
      ) : Runnable {
        @Volatile var callsPerHost = AtomicInteger(0)
          private set
    
        fun reuseCallsPerHostFrom(other: AsyncCall) {
          this.callsPerHost = other.callsPerHost
        }
    
        val host: String
          get() = originalRequest.url.host
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

        newWebSocket()
        serverListener.assertOpen()
        serverListener.assertFailure(EOFException::class.java)
        serverListener.assertExhausted()
        clientListener.assertFailure(e)
      }
    
      @Disabled("AsyncCall currently lets runtime exceptions propagate.")
      @Test
      @Throws(
        Exception::class,
      )
      fun throwingOnFailLogs() {
        webServer.enqueue(
          MockResponse
            .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top