Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Dequeue (0.23 sec)

  1. pkg/controller/garbagecollector/garbagecollector_test.go

    }
    
    func (t *trackingWorkqueue[T]) Add(item T) {
    	t.queue(item)
    	t.limiter.Add(item)
    }
    func (t *trackingWorkqueue[T]) AddAfter(item T, duration time.Duration) {
    	t.Add(item)
    }
    func (t *trackingWorkqueue[T]) AddRateLimited(item T) {
    	t.Add(item)
    }
    func (t *trackingWorkqueue[T]) Get() (T, bool) {
    	item, shutdown := t.limiter.Get()
    	t.dequeue(item)
    	return item, shutdown
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

      @Test
      fun connectionPooling_Async() {
        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(MockResponse(body = "def"))
        server.enqueue(MockResponse(body = "ghi"))
        client.newCall(Request.Builder().url(server.url("/a")).build()).enqueue(callback)
        callback.await(server.url("/a")).assertBody("abc")
        client.newCall(Request.Builder().url(server.url("/b")).build()).enqueue(callback)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

      @Test
      fun redirectToCachedResult() {
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Cache-Control: max-age=60")
            .body("ABC")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .code(HttpURLConnection.HTTP_MOVED_PERM)
            .addHeader("Location: /foo")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .body("DEF")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  4. src/main/webapp/js/admin/jquery-3.6.3.min.map

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 135.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        server.enqueue(
          MockResponse(
            body = "This connection won't pool properly",
            socketPolicy = socketPolicy,
          ),
        )
        val responseAfter = MockResponse(body = "This comes after a busted connection")
        server.enqueue(responseAfter)
        server.enqueue(responseAfter) // Enqueue 2x because the broken connection may be reused.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  6. src/main/webapp/js/jquery-3.6.3.min.map

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 135.2K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    	return gp
    }
    
    // A gQueue is a dequeue of Gs linked through g.schedlink. A G can only
    // be on one gQueue or gList at a time.
    type gQueue struct {
    	head guintptr
    	tail guintptr
    }
    
    // empty reports whether q is empty.
    func (q *gQueue) empty() bool {
    	return q.head == 0
    }
    
    // push adds gp to the head of q.
    func (q *gQueue) push(gp *g) {
    	gp.schedlink = q.head
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. pkg/controller/daemon/daemon_controller_test.go

    		if got, want := manager.queue.Len(), 1; got != want {
    			t.Fatalf("queue.Len() = %v, want %v", got, want)
    		}
    		key, done := manager.queue.Get()
    		if key == "" || done {
    			t.Fatalf("failed to enqueue controller for pod %v", pod1.Name)
    		}
    		expectedKey, _ := controller.KeyFunc(ds1)
    		if got, want := key, expectedKey; got != want {
    			t.Errorf("queue.Get() = %v, want %v", got, want)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  9. pkg/controller/job/job_controller_test.go

    			manager.podControl = &fakePodControl
    			manager.podStoreSynced = alwaysReady
    			manager.jobStoreSynced = alwaysReady
    			queue := &fakeRateLimitingQueue{}
    			manager.queue = queue
    			sharedInformerFactory.Batch().V1().Jobs().Informer().GetIndexer().Add(job)
    
    			queue.requeues = tc.requeues
    			newPod.Status.Phase = tc.phase
    			oldPod.Status.Phase = v1.PodRunning
    			if tc.oldPodPhase != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      void EnqueueCallers(func::FuncOp fn);
    
      // Returns the function at the front of the queue.
      func::FuncOp front() { return queue_.front(); }
    
      // Returns whether work queue is empty.
      bool EmptyQueue() const { return queue_.empty(); }
    
      // Returns function from the front of the work queue.
      func::FuncOp pop_front() {
        func::FuncOp ret = queue_.front();
        queue_.pop();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
Back to top