I `launch(coroutineContext +IO) { channel.consumeE...
# coroutines
b
I
launch(coroutineContext +IO) { channel.consumeEach { ... } }
. I feed the channel from another coroutine that runs every 15s, and in the
consumeEach
i do a network send (through a cpp library). This works fine for a couple minutes but eventually this coroutine stops executing and the cpu usage of the process goes from .02% to 70%. This is on a desktop. If I remove the
IO
and use the
CommonPool
it works fine. There are no errors or exceptions, the coroutine just stops and the cpu goes nuts. Is there anything I can do to try and figure out whats happening?
e
I had the same issue with
IO
, switched back to own elastic pool
e
There is a bug somewhere, please add details to https://github.com/Kotlin/kotlinx.coroutines/issues/525 We are investigating to fix