You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
A simple API is preferable. We should not complicate it for an unusual use case, if
that use case can be implemented in some other way. In particular, consider using a
Timer, which supports a Reset method.
by opennota:
The text was updated successfully, but these errors were encountered: