- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for updateLastCall (0.31 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/atmostevery.go
// most every given duration. func NewAtMostEvery(delay time.Duration) *AtMostEvery { return &AtMostEvery{ delay: delay, } } // updateLastCall returns true if the lastCall time has been updated, // false if it was too early. func (s *AtMostEvery) updateLastCall() bool { s.mutex.Lock() defer s.mutex.Unlock() if time.Since(s.lastCall) < s.delay { return false } s.lastCall = time.Now() return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 1.5K bytes - Viewed (0)