News for hackers. Stuff that matters.
Re:Coroutines for Go by rcme on Monday July 17, 2023 @04:26PM (#36763575)
You can write to a channel concurrently.
Re:Coroutines for Go by ackfoobar on Monday July 17, 2023 @04:34PM (#36763679)
And to make the concurrency safe you have to pay the price of synchronization.

https://go.dev/tour/concurrency/8

In A Tour of Go, concurrency section, "Equivalent Binary Trees" is an example of paying the price when you don't need it.

Re:Coroutines for Go by ikiris on Monday July 17, 2023 @04:47PM (#36763840)
its not that you cant, it's that its very expensive.