Hacker News new | ask | show | jobs
by harikb 1858 days ago
Main problems with async await model is that the callee decides whether something should run sync/async. In goroutines model, caller decides
1 comments

I 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.

> 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.