https://kotlinlang.org logo
Title
v

Vsevolod Tolstopyatov [JB]

12/18/2018, 8:23 PM
📣 📣 📣 I am happy to announce
kotlinx.coroutines
1.1.0-alpha! This is a major release with two new modules, a lot of improvements in testability and debuggability, various performance improvements and bug fixes. Changelog: *
kotlinx-coroutines-test
module with testable
Dispatchers.Main
*
kotlinx-coroutines-debug
module with debug agent to track and debug active coroutines * Stacktrace recovery mechanism that provides additional coroutine-based stacktraces in exceptions (enabled in debug mode) *
MainScope
and
CoroutineScope.cancel
methods for simpler integration with structured concurrency *
CancellableContinuation
race between
resumeWithException
and
cancel
is now not treated as an uncaught exception *
Dispatchers.Default
CPU consumption in idle state is reduced *
JavaFx
dispatcher initialization bug fixed Full changelog: https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.1.0-alpha
🎉 33
u

uliluckas

12/18/2018, 10:00 PM
Great!
Is there any link with further informatin regarding "Kotlin/Native single-threaded workers support"?
c

cbruegg

12/18/2018, 10:28 PM
How expensive is Coroutine stacktrace recovery? Is this the reason why it's only activated in debug mode?
1
d

danny

12/18/2018, 11:17 PM
Likely the cost of creating a Throwable and filling the stacktrace, and that can get pretty CPU intensive under heavy load
v

Vsevolod Tolstopyatov [JB]

12/18/2018, 11:21 PM
Likely the cost of creating a Throwable and filling the stacktrace
More or less this.
How expensive is Coroutine stacktrace recovery?
Taking into account the fact that exception is already thrown, cost is not that large.
Is this the reason why it’s only activated in debug mode?
It is debug facility 🙂 Maybe it will be enabled by default at some point, depending on the feedback.
👍 4
“Kotlin/Native single-threaded workers support”
Previously it was impossible to use kx.coroutines from K/N workers, only from the main thread. Now kx.coroutines can be used from workers as well
💯 2
j

Jonathan

12/19/2018, 10:02 AM
Is there an ETA for
1.1.0
(stable) ?
👍 1
v

Vsevolod Tolstopyatov [JB]

12/19/2018, 2:47 PM
@Jonathan Depending on the feedback, most probably on Friday
👍 1
i

Icaro Temponi

12/19/2018, 4:35 PM
think i'll use this one in production right now, YOLO 😁