Add ThrottleTimer.Unset

This commit is contained in:
Jae Kwon 2016-01-10 08:12:10 -08:00
parent f592570310
commit c58b1cbf8a
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ func (t *ThrottleTimer) Set() {
}
}
func (t *ThrottleTimer) Unset() {
t.timer.Stop()
}
// For ease of .Stop()'ing services before .Start()'ing them,
// we ignore .Stop()'s on nil ThrottleTimers
func (t *ThrottleTimer) Stop() bool {