The current time.NewTicker(time.Duration) makes its first tick after the given duration. ue to the nature of most ticker-dependent implementations, it is hard to elegantly add a tick right after calling the method.
Therefore, I want to propose a new method time.NewTickerStart(time.Duration), f.e. that does exactly the same as time.NewTicker, but fires the first tick directly after creation.
The current
time.NewTicker(time.Duration)makes its first tick after the given duration. ue to the nature of most ticker-dependent implementations, it is hard to elegantly add a tick right after calling the method.Therefore, I want to propose a new method
time.NewTickerStart(time.Duration), f.e. that does exactly the same astime.NewTicker, but fires the first tick directly after creation.