3 ms·
Race conditions. With coroutines you’re not supposed to deal with race. If i am understanding the motives
by freecodyx 3y ago
Race conditions. With coroutines you’re not supposed to deal with race. If i am understanding the motives
- rcme 3y agoYou can write to a channel concurrently.
- ackfoobar 3y agoAnd to make the concurrency safe you have to pay the price of synchronization. https://go.dev/tour/concurrency/8 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.
- ikiris 3y agoits not that you cant, it's that its very expensive.