Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Constructor (0.06 sec)

  1. cmd/data-scanner.go

    					globalScannerMetrics.incTime(scannerMetricYield, wantSleep)
    				}
    				return
    			}
    		}
    	}
    }
    
    // Update the current settings and cycle all waiting.
    // Parameters are the same as in the constructor.
    func (d *dynamicSleeper) Update(factor float64, maxWait time.Duration) error {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if math.Abs(d.factor-factor) < 1e-10 && d.maxSleep == maxWait {
    		return nil
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top