←back to thread

159 points mpweiher | 1 comments | | HN request time: 0.3s | source
Show context
zerr ◴[] No.43672487[source]
Is the tl;dr: instead of channels, just use mutexes (and a shared state) explicitly with goroutines?
replies(1): >>43673723 #
guilhas ◴[] No.43673723[source]
Use the one that fits your problem https://go.dev/wiki/MutexOrChannel

But in any case you will end up using a wrapper on either

replies(1): >>43679626 #
1. zerr ◴[] No.43679626[source]
So akin to Erlang processes.