Um, I don't think I ever actually _implemented_ it as such. If you want one that works, go look at the fantastic cppcoro library: github.com/lewissbaker/cppcoro
I think that this video gives a better context for co-routines: th-cam.com/video/_fu0gx-xseY/w-d-xo.html - they aren't really a specialisation of a "normal" function, but a "normal" function is really a specialisation of a co-routine. Other than that, interesting talk with lots of good details about the TS.
Can you share your task implementation mentioned @ 23:01?
Um, I don't think I ever actually _implemented_ it as such. If you want one that works, go look at the fantastic cppcoro library: github.com/lewissbaker/cppcoro
I think that this video gives a better context for co-routines: th-cam.com/video/_fu0gx-xseY/w-d-xo.html - they aren't really a specialisation of a "normal" function, but a "normal" function is really a specialisation of a co-routine. Other than that, interesting talk with lots of good details about the TS.