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