MCPcopy
hub / github.com/tailscale/tailscale / Stop

Method Stop

tstest/clock.go:688–690  ·  view source on GitHub ↗

Stop deactivates the Timer. Stop reports whether the timer was active before stopping.

()

Source from the content-addressed store, hash-verified

686// Stop deactivates the Timer. Stop reports whether the timer was active before
687// stopping.
688func (t *Timer) Stop() bool {
689 return t.reset(time.Time{})
690}
691
692func (t *Timer) reset(nextTrigger time.Time) bool {
693 t.mu.Lock()

Callers 15

AcceptMethod · 0.95
sendMapRequestMethod · 0.95
sleepAsRequestedFunction · 0.95
SlowLoggerWithClockFunction · 0.95
WaitReadyMethod · 0.95
WaitOrderMethod · 0.95
backoffMethod · 0.95

Calls 1

resetMethod · 0.95

Tested by 12

AcceptMethod · 0.76
WaitReadyMethod · 0.76
expectEventsFunction · 0.76
watchFileFunction · 0.76
TestMonitorModeFunction · 0.76
TestAddPingRequestFunction · 0.76
TestGroupPolicyReadLockFunction · 0.76
TestDeleterFunction · 0.76
TestSendFreezeFunction · 0.76