Stop runtime timer and finish routine that updates time
()
| 58 | |
| 59 | // Stop runtime timer and finish routine that updates time |
| 60 | func (timer *cachedTimer) Stop() { |
| 61 | timer.ticker.Stop() |
| 62 | timer.done <- true |
| 63 | close(timer.done) |
| 64 | |
| 65 | timer.done = nil |
| 66 | timer.ticker = nil |
| 67 | } |
| 68 | |
| 69 | // Periodically check and update of time |
| 70 | func (timer *cachedTimer) update() { |