pkg/contention/contention.go
func NewTimeoutDetector(maxDuration time.Duration) *TimeoutDetector {
	return &TimeoutDetector{
		maxDuration: maxDuration,
		records:     make(map[uint64]time.Time),
	}
}
func NewTimeoutDetector(maxDuration time.Duration) *TimeoutDetector {
	return &TimeoutDetector{
		maxDuration: maxDuration,
		records:     make(map[uint64]time.Time),
	}
}
func NewTimeoutDetector ( maxDuration time . Duration ) * TimeoutDetector { return & TimeoutDetector { maxDuration : maxDuration , records : make ( map [ uint64 ] time . Time ) , } }
// NewTimeoutDetector creates the TimeoutDetector.
NewTimeoutDetector creates the TimeoutDetector .