News for hackers. Stuff that matters.
Re:C++20: Building a Thread-Pool with Coroutines by harikb on Saturday May 22, 2021 @08:51PM (#27251568)
Main problems with async await model is that the callee decides whether something should run sync/async. In goroutines model, caller decides
Re:C++20: Building a Thread-Pool with Coroutines by Matthias247 on Sunday May 23, 2021 @12:12AM (#27252392)
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.

Re:C++20: Building a Thread-Pool with Coroutines by harikb on Sunday May 23, 2021 @10:34AM (#27255260)
> 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.