-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Description
by opennota:
Some use cases for tickers require stopping the ticker and restarting it later. This behaviour can be emulated using time.After, but it requires creating new timers each time you want to restart it. I suggest to add the following methods: // NewUnstartedTicker returns a new ticker, but does not start it. func NewUnstartedTicker(d Duration) *Ticker // Start starts stopped or unstarted ticker. func (*Ticker) Start()