Tickers

Timers are for when you want to do something once in the future - the tickers are for when you want to do something repeatedly at regular intervals.

Tickers use a similar mechanism to timers: a pipe that sends values.


time.NewTicker(time.Duration)
                        

Tickers can be stopped like timers. Once a ticker is stopped, it will no longer receive any value in your channel.

tickers.go