Reset changes the timer to expire after duration d. It returns true if the timer had been active, false if the timer had expired or been stopped. The channel t.C is cleared and calling t.Reset() behaves as creating a new Timer.
(d time.Duration)
| 72 | // The channel t.C is cleared and calling t.Reset() behaves as creating a |
| 73 | // new Timer. |
| 74 | func (t *Timer) Reset(d time.Duration) bool { |
| 75 | if t.f == nil { |
| 76 | panic("timer: Reset called on uninitialized Timer") |
| 77 | } |
| 78 | return resetTimer(t, d) |
| 79 | } |