https://kotlinlang.org logo
#coroutines
Title
# coroutines
v

Vsevolod Tolstopyatov [JB]

05/14/2021, 3:34 PM
📣 📣 📣 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

Big Chungus

05/14/2021, 3:35 PM
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

Colton Idle

05/14/2021, 9:13 PM
Might be a dumb question, but can I use coroutines 1.5 if I'm still on kotlin 1.4.32?
l

louiscad

05/15/2021, 9:23 AM
@Colton Idle Why do you want to stay on Kotlin 1.4.32?
c

Colton Idle

05/15/2021, 12:51 PM
@louiscad compose has me tied to 1.4.32
l

louiscad

05/15/2021, 1:49 PM
I think you can try, so long you don't use
@ExperimentalTime
v

Vsevolod Tolstopyatov [JB]

05/17/2021, 8:55 AM
@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

Evgeniy Zaharov

05/17/2021, 9:39 AM
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
6 Views