by scarboy · 12y ago · 0 comments
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.
`time.Ticker` looks handy, I will definitely use it for another project.