3 ms·
What are you talking about? A go routine can run async to another go routine. It's async. It's just a different perspective of concurrency than node. I litera
by crimsonalucard 7y ago
What are you talking about? A go routine can run async to another go routine. It's async.
It's just a different perspective of concurrency than node.
I literally quote from go by example:
https://gobyexample.com/goroutines https://gobyexample.com/goroutines
"Our two function calls are running asynchronously in separate goroutines now."
- loopz 7y agoWhat they really mean by async is sync (await)! ;-) In relation to Golang: https://yizhang82.dev/go-and-async-await https://yizhang82.dev/go-and-async-await
- crimsonalucard 7y agoI'm aware of what they mean and how they are confused. You should know that the author of that article failed to mention that node is free of race conditions caused by context switching, this is a huge deal and in many cases worth the trouble of async await syntax.