Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for enqueue (0.15 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

      fun connectionWindowUpdateOnClose() {
        server.enqueue(
          MockResponse
            .Builder()
            .body(Buffer().write(ByteArray(Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE + 1)))
            .build(),
        )
        server.enqueue(
          MockResponse(body = "abc"),
        )
        // Enqueue an additional response that show if we burnt a good prior response.
        server.enqueue(
          MockResponse(body = "XXX"),
        )
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 67.4K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

        )
      }
    
      @Test
      fun cancelAsyncCall() {
        server.enqueue(
          MockResponse
            .Builder()
            .body("abc")
            .build(),
        )
        val call =
          client.newCallWithListener(
            Request
              .Builder()
              .url(server.url("/"))
              .build(),
          )
        call.enqueue(
          object : Callback {
            override fun onFailure(
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.5K bytes
    - Click Count (0)
  3. okhttp/api/jvm/okhttp.api

    public abstract interface class okhttp3/Call : java/lang/Cloneable {
    	public abstract fun addEventListener (Lokhttp3/EventListener;)V
    	public abstract fun cancel ()V
    	public abstract fun clone ()Lokhttp3/Call;
    	public abstract fun enqueue (Lokhttp3/Callback;)V
    	public abstract fun execute ()Lokhttp3/Response;
    	public abstract fun isCanceled ()Z
    	public abstract fun isExecuted ()Z
    	public abstract fun request ()Lokhttp3/Request;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.2K bytes
    - Click Count (0)
  4. okhttp/api/android/okhttp.api

    public abstract interface class okhttp3/Call : java/lang/Cloneable {
    	public abstract fun addEventListener (Lokhttp3/EventListener;)V
    	public abstract fun cancel ()V
    	public abstract fun clone ()Lokhttp3/Call;
    	public abstract fun enqueue (Lokhttp3/Callback;)V
    	public abstract fun execute ()Lokhttp3/Response;
    	public abstract fun isCanceled ()Z
    	public abstract fun isExecuted ()Z
    	public abstract fun request ()Lokhttp3/Request;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.3K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/Synchronized.java

      }
    
      static <E extends @Nullable Object> Queue<E> queue(Queue<E> queue, @Nullable Object mutex) {
        return (queue instanceof SynchronizedQueue) ? queue : new SynchronizedQueue<E>(queue, mutex);
      }
    
      private static class SynchronizedQueue<E extends @Nullable Object>
          extends SynchronizedCollection<E> implements Queue<E> {
    
        SynchronizedQueue(Queue<E> delegate, @Nullable Object mutex) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 53K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Synchronized.java

      }
    
      static <E extends @Nullable Object> Queue<E> queue(Queue<E> queue, @Nullable Object mutex) {
        return (queue instanceof SynchronizedQueue) ? queue : new SynchronizedQueue<E>(queue, mutex);
      }
    
      private static class SynchronizedQueue<E extends @Nullable Object>
          extends SynchronizedCollection<E> implements Queue<E> {
    
        SynchronizedQueue(Queue<E> delegate, @Nullable Object mutex) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        WeakValueReferenceImpl(ReferenceQueue<V> queue, V referent, E entry) {
          super(referent, queue);
          this.entry = entry;
        }
    
        @Override
        public E getEntry() {
          return entry;
        }
    
        @Override
        public WeakValueReference<K, V, E> copyFor(ReferenceQueue<V> queue, E entry) {
          return new WeakValueReferenceImpl<>(queue, get(), entry);
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 89.9K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Iterators.java

          return !queue.isEmpty();
        }
    
        @Override
        @ParametricNullness
        public T next() {
          IndexedIterator<T> nextIndexed = queue.remove();
          PeekingIterator<T> nextIter = nextIndexed.iterator;
          T next = nextIter.next();
          if (nextIter.hasNext()) {
            queue.add(nextIndexed);
          }
          return next;
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 12:42:11 GMT 2025
    - 51.4K bytes
    - Click Count (0)
  9. docs/bucket/notifications/README.md

    result = channel.queue_declare(exclusive=False)
    queue_name = result.method.queue
    
    channel.queue_bind(exchange='bucketevents',
                       queue=queue_name)
    
    print(' [*] Waiting for logs. To exit press CTRL+C')
    
    def callback(ch, method, properties, body):
        print(" [x] %r" % body)
    
    channel.basic_consume(callback,
                          queue=queue_name,
                          no_ack=False)
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 84.2K bytes
    - Click Count (0)
  10. docs/changelogs/changelog_3x.md

        a stream timeout to determine whether the connection should remain eligible for pooling.
    
    
    ## Version 3.14.4
    
    _2019-09-29_
    
     *  Fix: Cancel calls that fail due to unexpected exceptions. We had a bug where an enqueued call
        would never call back if it crashed with an unchecked throwable, such as a
        `NullPointerException` or `OutOfMemoryError`. We now call `Callback.onFailure()` with an
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
Back to Top