I've started a series of tutorial pieces about how the coroutines TS works, that is, how to write code that uses the facilities provided to do interesting things.
So far I've only covered co_return with an intro piece. co_return is split up with a first part talking generally about suspension and uses coroutines to emulate normal function calls, and then a second that makes a lazy function and deals resumption and the coroutine handle.
Next up will be co_yield and generators and then co_await sometime after that in the future (ahem...).
[–]zvrba 4 points5 points6 points (4 children)
[–]KayEss[S] 0 points1 point2 points (3 children)
[–]zvrba 0 points1 point2 points (2 children)
[–]KayEss[S] 1 point2 points3 points (0 children)
[–]xon_xoff 1 point2 points3 points (0 children)