(no title)
scarboy | 11 years ago
time.Ticker is great if you want to repeat the task at approximately the same interval. time.Timer is what I use when I want the task to repeat a certain time after the previous task has finished. You can also conveniently use timer.Reset(0) to trigger an immediate tick.
axk|11 years ago
`time.Ticker` looks handy, I will definitely use it for another project.