So, this was my primary objection during the standardization of coroutines for C++20. Red Hat's vote was consistently against adding the feature without library support, but here we are.
Lewis Baker (formerly at Facebook) has led most of the work since on defining what that library support might look like. The library where he has done most of his exploration on the matter is -
I spoke a bit this morning with one of the C++ committee members most directly involved in where this is going standardization-wise and the takeaway about the current expectations is -
C++23 is likely to get at least some minimal library support in the form of -
Which defines a generator<T> that models std::ranges::input_range.
But, for anything that involves a library for scheduling asynchronous execution of coroutines (e.g. tasks<T>'s) on different execution contexts (threads) that is likely not going to happen until C++26.
I wish I had a better story to tell.
Tom.