:mega: :mega: :mega: kotlinx.coroutines 1.5.0 is h...
# coroutines
v
📣 📣 📣 kotlinx.coroutines 1.5.0 is here! * New channels API:
trySend
,
tryReceive
, and
receiveCatching
instead of error-prone
poll
and
offer
* Reactive integrations,
callbackFlow
, and
channelFlow
are promoted to stable API *
CoroutinesTimeout
JUnit5 rule And a lot more! Full changelog: https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.5.0
🎉 26
🔥 1
K 16
⏸️ 2
b
Pretty sure it's been mentioned somewhere and I've missed it, but could anyone confirm that coroutines are indeed meant to follow kotlin versions in their semver?
c
Might be a dumb question, but can I use coroutines 1.5 if I'm still on kotlin 1.4.32?
l
@Colton Idle Why do you want to stay on Kotlin 1.4.32?
c
@louiscad compose has me tied to 1.4.32
l
I think you can try, so long you don't use
@ExperimentalTime
v
@Big Chungus not really, Kotlin has different versioning (e.g. 1.4.20 -> 1.4.21 -> 1.4.30 vs coroutines 1.4.0 -> 1.4.1 -> 1.4.3). In addition, coroutines are actually allowed to introduce new non-experimental API in minor versions. The fact that major versions of these two are the same is just a coincidence @ArcticLampyrid it’s here 🙂
🎉 2
👍 2
e
Does anyone know why
org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.0
depends on
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8
and not
1.5.0
? This force resolving dependencies for coroutines 1.5.0 in gradle to 1.4.2
Copy code
org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.0
|    +--- org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.0
|    |    +--- org.jetbrains.kotlin:kotlin-scripting-common:1.5.0
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.0
|    |    |    |    +--- org.jetbrains:annotations:13.0
|    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.5.0
|    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8 -> 1.4.2
|    |    |         \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.2
Copy code
+--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0
|    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0 -> 1.4.2
update: looks like
io.spring.dependency-management
force coroutine dependency version