I am just started to use coroutines and I like the concept and tools very much. However, even within my few weeks of practice, I ran into a problem twice.
In some circumstances, an uncaught exception thrown within a coroutine is simply swallowed and not printed out at all. I simply can’t find any cause justifying implicit hiding of an uncaught exception in any way.
I am sure there is a (either a design or a technical) reason for this, but I couldn’t have found out what it would be.
Also, as this is a language feature, there should be a solution to catch and print any uncaught exception in a coroutine architecture (without infesting any little code with try-catch), to avoid the above mentioned, hard to debug situation. I am looking forward the right way I should handle this!