There are probably 200 lines of code in my GoLang doing redundant timer operations just because I'm scared what will happen if I don't.
-
-
-
@patio11 You wrote the canonical race condition. Try making the time.Sleep 124ms. - 3 more replies
New conversation -
-
-
@patio11 then again, your example is in the playground, where time is made up and the order doesn't matterThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11 something something something immutability?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11 there was a write to timer.C at ~125ms which isn't read until select stmt, timer.Reset() doesn't clear chan, but does return a bool -
@patio11@billhathaway To show this in code: https://play.golang.org/p/8SgHjksz18 - 1 more reply
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.