Re:What Golang Is and Is Not
by kevhito on Sunday August 21, 2016 @11:13PM
(#12333875)
It's even worse. The longTimer has fired, and it sent a message on the channel just as it was supposed to. When Reset() is called, it causes a second firing and a second message. Here is the code, corrected to illustrate. The output times are exactly as one would expect.
https://play.golang.org/p/lntgH6tkiF