https://kotlinlang.org logo
Title
l

Leonardo Borges

07/06/2022, 6:44 AM
I'm facing a weird error after migrating to ktor 2, about coroutine dispatcher limited parallelism. This is something they changed and added as support but seems weird that I need to set some configuration about it. Has someone experienced this issue? Using Ktor 2.0.3, Kotlin 1.7.0 and kotlinx-coroutines 1.6.0 (tried with 1.6.2 too)
a

Aleksei Tirman [JB]

07/06/2022, 9:39 AM
Could you please describe your problem in more detail?
l

Leonardo Borges

07/06/2022, 9:43 AM
oh sorry Aleksei, I havent explained it at all. I'm having a
nosuchmethodexception
with this message:
kotlinx.coroutines.CoroutineDispatcher.limitedParallelism(I)Lkotlinx/coroutines/CoroutineDispatcher;
a

Aleksei Tirman [JB]

07/06/2022, 9:45 AM
Could you please check that you don’t have multiple versions of
kotlinx.coroutines
in your dependencies?
l

Leonardo Borges

07/06/2022, 9:49 AM
already checked 😞
a

Aleksei Tirman [JB]

07/06/2022, 9:56 AM
Could you please share a code snippet to reproduce this exception?