MCPcopy
hub / github.com/tailscale/tailscale / Reset

Method Reset

tstest/clock.go:667–674  ·  view source on GitHub ↗

Reset reschedules the next fire time to the current simulated time + d. Reset reports whether the timer was still active before the reset.

(d time.Duration)

Source from the content-addressed store, hash-verified

665// Reset reschedules the next fire time to the current simulated time + d.
666// Reset reports whether the timer was still active before the reset.
667func (t *Timer) Reset(d time.Duration) bool {
668 if d <= 0 {
669 // The standard time.Timer requires a positive delay.
670 panic("non-positive delay for Timer.Reset")
671 }
672
673 return t.reset(t.em.Now().Add(d))
674}
675
676// ResetAbsolute reschedules the next fire time to nextTrigger.
677// ResetAbsolute reports whether the timer was still active before the reset.

Callers 6

sendMapRequestMethod · 0.95
addrDiscoveryLoopMethod · 0.95
flushWorkerMethod · 0.95
runCertLoopMethod · 0.95
runMethod · 0.95
connectV2Function · 0.95

Calls 3

resetMethod · 0.95
AddMethod · 0.65
NowMethod · 0.65

Tested by

no test coverage detected