Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for OnFailure (0.09 sec)

  1. docs/changelogs/changelog_3x.md

        would never call back if it crashed with an unchecked throwable, such as a
        `NullPointerException` or `OutOfMemoryError`. We now call `Callback.onFailure()` with an
        `IOException` that reports the call as canceled. The triggering exception is still delivered to
        the thread's `UncaughtExceptionHandler`.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Futures.java

            if (failure != null) {
              callback.onFailure(failure);
              return;
            }
          }
          V value;
          try {
            value = getDone(future);
          } catch (ExecutionException e) {
            callback.onFailure(e.getCause());
            return;
          } catch (Throwable e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

              .Builder()
              .url(server.url("/"))
              .build(),
          )
        val completionLatch = CountDownLatch(1)
        val callback: Callback =
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              completionLatch.countDown()
            }
    
            override fun onResponse(
              call: Call,
              response: Response,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        requestCanceledLatch: CountDownLatch?,
      ) {
        val call = client.newCall(Request(server.url("/")))
        val latch = CountDownLatch(1)
        call.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              latch.countDown()
            }
    
            override fun onResponse(
              call: Call,
              response: Response,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

         * assume that connectivity has been lost. When this happens on a web socket the connection is
         * canceled and its listener is [notified][WebSocketListener.onFailure]. When it happens on an
         * HTTP/2 connection the connection is closed and any calls it is carrying
         * [will fail with an IOException][java.io.IOException].
         *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  6. okhttp/api/jvm/okhttp.api

    }
    
    public abstract interface class okhttp3/Call$Factory {
    	public abstract fun newCall (Lokhttp3/Request;)Lokhttp3/Call;
    }
    
    public abstract interface class okhttp3/Callback {
    	public abstract fun onFailure (Lokhttp3/Call;Ljava/io/IOException;)V
    	public abstract fun onResponse (Lokhttp3/Call;Lokhttp3/Response;)V
    }
    
    public final class okhttp3/CertificatePinner {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  7. okhttp/api/android/okhttp.api

    }
    
    public abstract interface class okhttp3/Call$Factory {
    	public abstract fun newCall (Lokhttp3/Request;)Lokhttp3/Call;
    }
    
    public abstract interface class okhttp3/Callback {
    	public abstract fun onFailure (Lokhttp3/Call;Ljava/io/IOException;)V
    	public abstract fun onResponse (Lokhttp3/Call;Lokhttp3/Response;)V
    }
    
    public final class okhttp3/CertificatePinner {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
Back to top