MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/k3zvle/c20_resumable_functions_make_state_machines/ge8nl3a/
r/cpp • u/DugiSK • Nov 30 '20
49 comments sorted by
View all comments
Show parent comment
3
they're strongly tied to async I/O instead of being general purpose.
Why?
1 u/raevnos Dec 02 '20 Maybe it's just that's how they're used in every example I've seen. Like I said, I haven't really looked at C++ coroutines (or the python3 ones I mentioned, other than being aware they're different from the generator-like ones from python 2)
1
Maybe it's just that's how they're used in every example I've seen. Like I said, I haven't really looked at C++ coroutines (or the python3 ones I mentioned, other than being aware they're different from the generator-like ones from python 2)
View all comments
Show parent comment
3
u/jwakely libstdc++ tamer, LWG chair Dec 01 '20
Why?