MCPcopy
hub / github.com/tailscale/tailscale / ResetAbsolute

Method ResetAbsolute

tstest/clock.go:678–684  ·  view source on GitHub ↗

ResetAbsolute reschedules the next fire time to nextTrigger. ResetAbsolute reports whether the timer was still active before the reset.

(nextTrigger time.Time)

Source from the content-addressed store, hash-verified

676// ResetAbsolute reschedules the next fire time to nextTrigger.
677// ResetAbsolute reports whether the timer was still active before the reset.
678func (t *Timer) ResetAbsolute(nextTrigger time.Time) bool {
679 if nextTrigger.IsZero() {
680 panic("zero nextTrigger time for ResetAbsolute")
681 }
682
683 return t.reset(nextTrigger)
684}
685
686// Stop deactivates the Timer. Stop reports whether the timer was active before
687// stopping.

Callers 3

TestSingleTickerFunction · 0.45
TestSingleTimerFunction · 0.45
TestAfterFuncFunction · 0.45

Calls 2

resetMethod · 0.95
IsZeroMethod · 0.65

Tested by 3

TestSingleTickerFunction · 0.36
TestSingleTimerFunction · 0.36
TestAfterFuncFunction · 0.36