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
[ Parent
| on HN ]
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.