Are coroutines available in Kotlin 1.3 stdlib? Whe...
# announcements
j
Are coroutines available in Kotlin 1.3 stdlib? When I am looking into coroutines tutorial in documentation (https://kotlinlang.org/docs/tutorials/coroutines/coroutines-basic-jvm.html) it is telling me to add kotlinx to gradle/maven. I am compiling Kotlin in CLI without gradle/maven, so is there possibility to use coroutines in that case?
g
stdlib has very low level support of coroutines and sequence builder function based on coroutines
All high level stuff, such as cancellation support, channels, structured concurrency, dispatchers etc all of them are parts of kotlinx.coroutines library, but it is just a library, nothing magic there, so in theory you can implement any part of it yourself using primitives from stdlib
s
with Kotlin 1.3, kotlinx.coroutines moved forward to 1.0 - it has to be included on top
g
But question was about stdlib, and kotlinx.coroutines is not a part of stdlib
@Jakub Aniola sorry, missed second part of your question. You of course can use Kotlinx.coroutines with cli compiler and runner, just add Kotlinx.coroutine jar to classpath
s
right, did I say it was?
g
I just mean that 1.3 changed nothing in terms of kotlinx.coroutines
j
Where can I get kotlinx/kotlinx.coroutines jar file? @gildor
g