Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for completeExceptionally (0.1 sec)

  1. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

              ) {
                println("onSucceeded ${info?.headers?.asMap}")
                completableFuture.completeExceptionally(error)
              }
    
              override fun onCanceled(
                request: UrlRequest,
                info: UrlResponseInfo?,
              ) {
                completableFuture.completeExceptionally(CancellationException())
              }
            },
          )
            .setPriority(REQUEST_PRIORITY_MEDIUM)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 24 13:19:43 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

        val call = client.newCall(request)
        call.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              promise.completeExceptionally(e)
            }
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              promise.complete(response)
            }
          },
        )
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top