Apparently Go programmers write mutex code like it's 1995 :-(https://github.com/containous/traefik/commit/bcadd68904fa0248a636f6900e083c0c9e3e7d2e …
-
-
I don't think it's normal to assume that panics never happen -- I'd write that block as func() { hc.mutex.Lock() defer hc.mutex.Unlock() ... hc.cancel = cancel }() but yeah it's pretty clunky
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.