()
| 57 | } |
| 58 | |
| 59 | func (t *ThrottleTimer) Unset() { |
| 60 | t.mtx.Lock() |
| 61 | defer t.mtx.Unlock() |
| 62 | t.isSet = false |
| 63 | t.timer.Stop() |
| 64 | } |
| 65 | |
| 66 | // For ease of .Stop()'ing services before .Start()'ing them, |
| 67 | // we ignore .Stop()'s on nil ThrottleTimers |
no test coverage detected