Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Constructor (0.14 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
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
Back to top