Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for durationFactors (0.52 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    	// backoff at least 1ms, 2ms, 4ms, 8ms, 10ms, 10ms, 10ms
    	durationFactors := []time.Duration{1, 2, 4, 8, 10, 10, 10}
    	backoffMgr := NewExponentialBackoffManager(1*time.Millisecond, 10*time.Millisecond, 1*time.Hour, 2.0, 0.0, &clock.RealClock{})
    
    	for i := range durationFactors {
    		start := time.Now()
    		<-backoffMgr.Backoff().C()
    		passed := time.Since(start)
    		if passed < durationFactors[i]*time.Millisecond {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top