Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 282 for drain1 (0.12 sec)

  1. src/time/tick_test.go

    			return
    		}
    
    		// async timers can send one stale value (then the timer is disabled).
    		drain1()
    		if isTicker {
    			// async tickers can send two stale values: there may be one
    			// sitting in the channel buffer, and there may also be one
    			// send racing with the Reset/Stop+drain that arrives after
    			// the first drain1 has pulled the value out.
    			// This is rare, but it does happen on overloaded builder machines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/QueuesTest.java

          assertEquals(0, Queues.drain(q, ImmutableList.of(), 1, 10, MILLISECONDS));
    
          Producer producer = new Producer(q, 1);
          // producing one, will ask for two
          Future<?> producerThread = threadPool.submit(producer);
          producer.beganProducing.await();
    
          // make sure we time out
          Stopwatch timer = Stopwatch.createStarted();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/QueuesTest.java

          assertEquals(0, Queues.drain(q, ImmutableList.of(), 1, 10, MILLISECONDS));
    
          Producer producer = new Producer(q, 1);
          // producing one, will ask for two
          Future<?> producerThread = threadPool.submit(producer);
          producer.beganProducing.await();
    
          // make sure we time out
          Stopwatch timer = Stopwatch.createStarted();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12K bytes
    - Viewed (0)
  6. pkg/envoy/agent.go

    //  3. SIGTERM. We will drain, wait termination drain duration, then exit. This is the standard pod shutdown; SIGTERM arrives when pod shutdown starts.
    //     If the pod's terminationGracePeriod is shorter than our drain duration (rare), we may be a SIGKILL.
    //  4. /drain + SIGTERM. This is the shutdown when using Kubernetes native sidecars.
    //     /drain is called when the pod shutdown starts. We start draining, forever.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 16:04:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. pkg/envoy/admin.go

    //  limitations under the License.
    
    package envoy
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    	"net/http"
    	"strings"
    
    	"istio.io/istio/pkg/log"
    )
    
    // DrainListeners drains inbound listeners of Envoy so that inflight requests
    // can gracefully finish and even continue making outbound calls as needed.
    func DrainListeners(adminPort uint32, inboundonly bool, skipExit bool) error {
    	var drainURL string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 19 20:22:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/change_test.go

    	}
    
    	// Let all the established get request loops soak
    	time.Sleep(5 * time.Second)
    
    	// Tear down
    	close(stopChan)
    
    	// Let loops drain
    	drained = make(chan struct{})
    	go func() {
    		defer close(drained)
    		wg.Wait()
    	}()
    
    	select {
    	case <-drained:
    	case <-time.After(wait.ForeverTestTimeout):
    		t.Fatal("timed out waiting for clients to complete")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:59:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/queue/MultiEndPointQueue.java

        }
    
        void stopped(EndPointQueue queue) {
            waiting.remove(queue);
            endpoints.remove(queue);
            queue.dispatch(new EndOfStream());
        }
    
        public void drain(Collection<InterHubMessage> drainTo) {
            drainTo.addAll(queue);
            queue.clear();
        }
    
        private void flush() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcshared/testdata/main1.c

    Austin Clements <******@****.***> 1683216807 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top