Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 426 for enqueues (0.15 sec)

  1. pkg/controller/deployment/deployment_controller_test.go

    	c, _, err := f.newController(ctx)
    	if err != nil {
    		t.Fatalf("error creating Deployment controller: %v", err)
    	}
    	enqueued := false
    	c.enqueueDeployment = func(d *apps.Deployment) {
    		if d.Name == "foo" {
    			enqueued = true
    		}
    	}
    
    	c.deletePod(logger, pod)
    
    	if !enqueued {
    		t.Errorf("expected deployment %q to be queued after pod deletion", foo.Name)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  2. 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)
  3. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

       * map built by MapMaker) no longer has a strong reference to this object, the garbage collector
       * will reclaim it and enqueue the phantom reference. The enqueued reference will trigger the
       * Finalizer to stop.
       *
       * If this library is loaded in the system class loader, FinalizableReferenceQueue can load
       * Finalizer directly with no problems.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  4. 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)
  5. pkg/controller/endpointslice/endpointslice_controller.go

    // onServiceDelete removes the Service Selector from the cache and queues the Service for processing.
    func (c *Controller) onServiceDelete(obj interface{}) {
    	key, err := controller.KeyFunc(obj)
    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("Couldn't get key for object %+v: %v", obj, err))
    		return
    	}
    
    	c.serviceQueue.Add(key)
    }
    
    // onEndpointSliceAdd queues a sync for the relevant Service for a sync if the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

          if (existingCall.host == host) return existingCall
        }
        return null
      }
    
      /**
       * Cancel all calls currently enqueued or executing. Includes calls executed both
       * [synchronously][Call.execute] and [asynchronously][Call.enqueue].
       */
      fun cancelAll() {
        this.withLock {
          for (call in readyAsyncCalls) {
            call.call.cancel()
          }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. pkg/controller/statefulset/stateful_set_test.go

    	if key == "" || done {
    		t.Error("failed to enqueue StatefulSet")
    	} else if expectedKey, _ := controller.KeyFunc(set1); expectedKey != key {
    		t.Errorf("expected StatefulSet key %s found %s", expectedKey, key)
    	}
    	ssc.queue.Done(key)
    
    	ssc.addPod(logger, pod2)
    	key, done = ssc.queue.Get()
    	if key == "" || done {
    		t.Error("failed to enqueue StatefulSet")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      ) {
        setUp(protocol, mockWebServer)
        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"),
        )
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  9. tensorflow/cc/training/queue_runner.h

    /// QueueRunner class imitates the behavior of the python version of QueueRunner
    /// which creates a thread for each enqueue op, runs close op on completion.
    class QueueRunner : public RunnerInterface {
     public:
      /// Creates a new QueueRunner from proto.
      // TODO(yuefengz): we may want to initialize from queues and ops in the
      // future.
      static Status New(const QueueRunnerDef& queue_runner_def,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 31 18:27:00 UTC 2022
    - 5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		2: {false: pZero(), true: pZero()},
    	}
    	queueNoteFn := func(fn int) func(inQueue bool) {
    		return func(inQueue bool) { atomic.AddInt32(queueNoteCounts[fn][inQueue], 1) }
    	}
    	fatalErrs := []string{}
    	var errsLock sync.Mutex
    	expectQNCount := func(fn int, inQueue bool, expect int32) {
    		if a := atomic.LoadInt32(queueNoteCounts[fn][inQueue]); a != expect {
    			errsLock.Lock()
    			defer errsLock.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
Back to top