@pcwalton Fixed article to be more explicit and correct about using sync.Once and not Check-Lock-Check. My text wasn't clear enough
-
-
-
@mcastilho Cool :) You can fix it by just using atomic loads of an initialized like Dropbox' library does, but sync.Once is easier - 1 more reply
New conversation -
-
-
@pcwalton Yep, IMO that's the biggest problem with Go. Easy to build fast, useful, concurrent things. Trivial to get concurrency wrong.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.