3 ms·
Main problems with async await model is that the callee decides whether something should run sync/async. In goroutines model, caller decides
by harikb 5y ago
Main problems with async await model is that the callee decides whether something should run sync/async. In goroutines model, caller decides
- Matthias247 5y agoI don't think so. coroutine awaits are just like normal function calls in Go (since all of Go functions are implicitely suspendable). I guess you meant the "go" statement? That is more of a coroutine spawn thing, and this would be a separate function in C++ too.
- harikb 5y ago> since all of Go functions are implicitely suspendable Right. we are saying the same thing about Go. The comparison was with those languages that have explicit async keyword.