https://kotlinlang.org logo
#coroutines
Title
# coroutines
b

bj0

09/08/2018, 7:20 AM
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

enleur

09/08/2018, 7:23 AM
I had the same issue with
IO
, switched back to own elastic pool
e

elizarov

09/08/2018, 7:41 AM
There is a bug somewhere, please add details to https://github.com/Kotlin/kotlinx.coroutines/issues/525 We are investigating to fix
8 Views