/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Problems with Go channels (2016)
(www.jtolio.com)
159 points
mpweiher
| 2 comments |
13 Apr 25 05:43 UTC
|
HN request time: 0s
|
source
Show context
zerr
◴[
13 Apr 25 12:59 UTC
]
No.
43672487
[source]
▶
>>43670373 (OP)
#
Is the tl;dr: instead of channels, just use mutexes (and a shared state) explicitly with goroutines?
replies(1):
>>43673723
#
1.
guilhas
◴[
13 Apr 25 15:58 UTC
]
No.
43673723
[source]
▶
>>43672487
#
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
#
ID:
GO
2.
zerr
◴[
14 Apr 25 09:46 UTC
]
No.
43679626
[source]
▶
>>43673723 (TP)
#
So akin to Erlang processes.
↑