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
As a more-specific example in the producer/consumer line, something as simple as the humble batch reporting program could actually use co-routines.
The key hint for that example is having a nontrivial work to consume input data (e.g. parsing data or accumulating charges and payments on an account), and non-trivial work to produce the output. When you have these characteristics:
then coroutines and queues are both nice techniques to have at your disposal.