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
NewTicker will panic if the duration isn't greater than zero, while Tick will return nil.
Ideally Tick would panic as well but that could potentially break some code relying on this inconsistency. This special case should be documented as it's definitely not something you'd expect from reading the current Tick documentation.
The text was updated successfully, but these errors were encountered:
NewTicker
will panic if the duration isn't greater than zero, whileTick
will returnnil
.Ideally
Tick
would panic as well but that could potentially break some code relying on this inconsistency. This special case should be documented as it's definitely not something you'd expect from reading the currentTick
documentation.The text was updated successfully, but these errors were encountered: