Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for completeExceptionally (1.04 sec)

  1. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceFactoryTest.java

            } catch (Exception e) {
              future.completeExceptionally(e);
            }
          }
    
          @Override
          public void onEvent(@NotNull EventSource eventSource, @Nullable String id, @Nullable String type, @NotNull String data) {
            try {
              assertEquals("hello", data);
              future.complete(null);
            } catch (Exception e) {
              future.completeExceptionally(e);
            }
          }
    
          @Override
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top