Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 80 for timeCh (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    			// is running, not only the first ones in the list.
    			timer := c.timer
    			for _, watcher := range c.blockedWatchers {
    				if !watcher.add(event, timer) {
    					// fired, clean the timer by set it to nil.
    					timer = nil
    				}
    			}
    
    			// Stop the timer if it is not fired
    			if timer != nil && !timer.Stop() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    }
    func testServerGracefulClose(t *testing.T, mode testMode) {
    	runTimeSensitiveTest(t, []time.Duration{
    		1 * time.Millisecond,
    		5 * time.Millisecond,
    		10 * time.Millisecond,
    		50 * time.Millisecond,
    		100 * time.Millisecond,
    		500 * time.Millisecond,
    		time.Second,
    		5 * time.Second,
    	}, func(t *testing.T, timeout time.Duration) error {
    		SetRSTAvoidanceDelay(t, timeout)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. src/runtime/metrics_test.go

    	// Spend this much time measuring latencies.
    	latencies := make([]time.Duration, 0, 1024)
    	_, samples := prepareAllMetricsSamples()
    
    	// Hit metrics.Read continuously and measure.
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		start := time.Now()
    		metrics.Read(samples)
    		latencies = append(latencies, time.Since(start))
    	}
    	// Make sure to stop the timer before we wait! The load created above
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  4. pkg/controller/disruption/disruption_test.go

    	currentTime := dc.clock.Now()
    	pdb.Status.DisruptedPods = map[string]metav1.Time{
    		"p1":       {Time: currentTime},                       // Should be removed, pod deletion started.
    		"p2":       {Time: currentTime.Add(-3 * time.Minute)}, // Should be removed, expired.
    		"p3":       {Time: currentTime.Add(-time.Minute)},     // Should remain, pod untouched.
    		"notthere": {Time: currentTime},                       // Should be removed, pod deleted.
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  5. src/runtime/pprof/pprof_test.go

    	r := regexp.MustCompile(re)
    
    	if deadline, ok := t.Deadline(); ok {
    		if d := time.Until(deadline); d > 1*time.Second {
    			timer := time.AfterFunc(d-1*time.Second, func() {
    				debug.SetTraceback("all")
    				panic(fmt.Sprintf("timed out waiting for %#q", re))
    			})
    			defer timer.Stop()
    		}
    	}
    
    	buf := make([]byte, 64<<10)
    	for {
    		runtime.Gosched()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  6. src/crypto/tls/handshake_server_test.go

    				if *fast {
    					clientConn.SetWriteDeadline(time.Now().Add(1 * time.Second))
    				} else {
    					clientConn.SetWriteDeadline(time.Now().Add(1 * time.Minute))
    				}
    				clientConn.Write(b)
    				continue
    			}
    			bb := make([]byte, len(b))
    			if *fast {
    				clientConn.SetReadDeadline(time.Now().Add(1 * time.Second))
    			} else {
    				clientConn.SetReadDeadline(time.Now().Add(1 * time.Minute))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_node_status_test.go

    		"test unschedulable taint for TaintNodesByCondition")
    }
    
    func TestNodeStatusHasChanged(t *testing.T) {
    	fakeNow := metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC)
    	fakeFuture := metav1.Time{Time: fakeNow.Time.Add(time.Minute)}
    	readyCondition := v1.NodeCondition{
    		Type:               v1.NodeReady,
    		Status:             v1.ConditionTrue,
    		LastHeartbeatTime:  fakeNow,
    		LastTransitionTime: fakeNow,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet.go

    	return updatedPod
    }
    
    // LatestLoopEntryTime returns the last time in the sync loop monitor.
    func (kl *Kubelet) LatestLoopEntryTime() time.Time {
    	val := kl.syncLoopMonitor.Load()
    	if val == nil {
    		return time.Time{}
    	}
    	return val.(time.Time)
    }
    
    // updateRuntimeUp calls the container runtime status callback, initializing
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  9. CREDITS

    but in order to avoid inconsistency the Agreement is copyrighted and
    may only be modified in the following manner. The Agreement Steward
    reserves the right to publish new versions (including revisions) of
    this Agreement from time to time. No one other than the Agreement
    Steward has the right to modify this Agreement. The Eclipse Foundation
    is the initial Agreement Steward. The Eclipse Foundation may assign the
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 15:34:20 UTC 2024
    - 1.7M bytes
    - Viewed (0)
  10. src/net/http/h2_bundle.go

    	return err
    }
    
    // A timer is a time.Timer, as an interface which can be replaced in tests.
    type http2timer = interface {
    	C() <-chan time.Time
    	Reset(d time.Duration) bool
    	Stop() bool
    }
    
    // timeTimer adapts a time.Timer to the timer interface.
    type http2timeTimer struct {
    	*time.Timer
    }
    
    func (t http2timeTimer) C() <-chan time.Time { return t.Timer.C }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top