Timeout for python coroutines
How can I make a coroutine stop with timeout?
How can I make a coroutine stop with timeout?
I’ve got some example Python code that I need to mimic in C++. I do not require any specific solution (such as co-routine based yield solutions, although they would be acceptable answers as well), I simply need to reproduce the semantics in some manner.