How do I include kotlinx.coroutines.experimental ?...
# coroutines
o
How do I include kotlinx.coroutines.experimental ? In my project, which I'm starting from new
z
why don’t you use stable coroutines?
o
Actually I have an old piece of code that I want to reuse, and it uses Ktor 0.9.5 and Ktx 0.30.1
Copy code
kotlinx.coroutines.experimental.io.ByteReadChannel
That above import is giving me errors at "io".
l
Why not update to stable coroutines?
o
Idk, I did have to work on the Ktor part of the code too.
Anyways it's night time. Almost 12am. Brb
l
ktor has been updated to stable coroutines since then
g
I agree with other people in this thread, I wouldn't spend any time on support of experimental coroutines in your project, instead migrate on stable ones
👍 1
o
No worries, set the gradle project wrongly.