ResetTimer safely resets timer, handling the required stop+drain sequence first.
(timer *time.Timer, d time.Duration)
| 18 | |
| 19 | // ResetTimer safely resets timer, handling the required stop+drain sequence first. |
| 20 | func ResetTimer(timer *time.Timer, d time.Duration) { |
| 21 | StopAndDrainTimer(timer) |
| 22 | timer.Reset(d) |
| 23 | } |