The concept of a coroutine sounds very interesting, but I don\'t know, if it makes sense in a real productive environment? What are use-cases for coroutines, that can be solved
Coroutines are useful to implement producer/consumer patterns.
For example, Python introduced coroutines in a language feature called generators, which was intended to simplify the implementation of iterators.
They can also be useful to implement cooperative multitasking, where each task is a coroutine that yields to a scheduler/reactor.