I have never once not regretted using sync.Mutex in my Go code.
-
-
@patio11@tqbf@kasey_junk I tried the channel solution, but it requires a new reply channel for every request and that was a pain to code. -
@thatcks@tqbf@kasey_junk I put a single-use reply channel on the action object itself and feel so dirty.
End of conversation
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11@tqbf@kasey_junk Kinda hard to do concurrent map when you can't define 'map' in the language. But Pike insists that's a frill...Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11@tqbf@kasey_junk The one time I've needed a concurrent map it wound up being easier to use sync.Mutex than channels.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.