Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for enqueue0 (0.2 sec)

  1. android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

       * #enqueue enqueued} and {@link #dispatch dispatched}.
       */
      public void addListener(L listener, Executor executor) {
        checkNotNull(listener, "listener");
        checkNotNull(executor, "executor");
        listeners.add(new PerListenerQueue<>(listener, executor));
      }
    
      /**
       * Enqueues an event to be run on currently known listeners.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

       * #enqueue enqueued} and {@link #dispatch dispatched}.
       */
      public void addListener(L listener, Executor executor) {
        checkNotNull(listener, "listener");
        checkNotNull(executor, "executor");
        listeners.add(new PerListenerQueue<>(listener, executor));
      }
    
      /**
       * Enqueues an event to be run on currently known listeners.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

       * that enqueued messages were not transmitted.
       */
      fun queueSize(): Long
    
      /**
       * Attempts to enqueue `text` to be UTF-8 encoded and sent as a the data of a text (type `0x1`)
       * message.
       *
       * This method returns true if the message was enqueued. Messages that would overflow the outgoing
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller.go

    				}
    				return
    			}
    
    			enqueue(newObj, false)
    		},
    		DeleteFunc: func(obj interface{}) {
    			// Enqueue
    			enqueue(obj, false)
    		},
    	})
    
    	// Error might be raised if informer was started and stopped already
    	if err != nil {
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Call.kt

       *
       * @throws IllegalStateException when the call has already been executed.
       */
      fun enqueue(responseCallback: Callback)
    
      /** Cancels the request, if possible. Requests that are already complete cannot be canceled. */
      fun cancel()
    
      /**
       * Returns true if this call has been either [executed][execute] or [enqueued][enqueue]. It is an
       * error to execute a call more than once.
       */
      fun isExecuted(): Boolean
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. pkg/queue/delay.go

    // will block until there is room.
    func DelayQueueBuffer(bufferSize int) DelayQueueOption {
    	return func(queue *delayQueue) {
    		if queue.enqueue != nil {
    			close(queue.enqueue)
    		}
    		queue.enqueue = make(chan *delayTask, bufferSize)
    	}
    }
    
    // DelayQueueWorkers sets the number of background worker goroutines await tasks to execute. Effectively the
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 06:27:31 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        // makeSimpleCall() because it uses the MockResponse enqueued above.
        val callB = client.newCall(Request(server.url("/")))
        callB.execute().use { response ->
          assertThat(response.body.string()).isEqualTo("abc")
        }
      }
    
      private fun makeSimpleCall() {
        server.enqueue(MockResponse(body = "healthy"))
        val callB = client.newCall(Request(server.url("/")))
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. mockwebserver/README.md

      // instance for every unit test.
      MockWebServer server = new MockWebServer();
    
      // Schedule some responses.
      server.enqueue(new MockResponse().setBody("hello, world!"));
      server.enqueue(new MockResponse().setBody("sup, bra?"));
      server.enqueue(new MockResponse().setBody("yo dog"));
    
      // Start the server.
      server.start();
    
      // Ask the server for its URL. You'll need this to make HTTP requests.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

      }
    
      open fun setFailFast(failFastResponse: MockResponse?) {
        this.failFastResponse = failFastResponse
      }
    
      @ExperimentalOkHttpApi
      companion object {
        /**
         * Enqueued on shutdown to release threads waiting on [dispatch]. Note that this response
         * isn't transmitted because the connection is closed before this response is returned.
         */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/runtime/mwbbuf.go

    //
    // See mbarrier.go for algorithmic details on the write barrier. This
    // file deals only with the buffer.
    //
    // The write barrier has a fast path and a slow path. The fast path
    // simply enqueues to a per-P write barrier buffer. It's written in
    // assembly and doesn't clobber any general purpose registers, so it
    // doesn't have the usual overheads of a Go call.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top