I'm facing a weird error after migrating to ktor 2...
# ktor
l
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
Could you please describe your problem in more detail?
l
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
Could you please check that you don’t have multiple versions of
kotlinx.coroutines
in your dependencies?
l
already checked 😞
a
Could you please share a code snippet to reproduce this exception?