Vsevolod Tolstopyatov [JB]
12/18/2018, 8:23 PMkotlinx.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-alphauliluckas
12/18/2018, 10:00 PMcbruegg
12/18/2018, 10:28 PMdanny
12/18/2018, 11:17 PMVsevolod Tolstopyatov [JB]
12/18/2018, 11:21 PMLikely the cost of creating a Throwable and filling the stacktraceMore 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.
“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
Jonathan
12/19/2018, 10:02 AM1.1.0
(stable) ?Vsevolod Tolstopyatov [JB]
12/19/2018, 2:47 PMIcaro Temponi
12/19/2018, 4:35 PM