New
1.10.0
- Kotlin was updated to 2.1.0 (#4284).
- Introduced
Flow.any,Flow.all, andFlow.none(#4212). Thanks, @CLOVIS-AI! - Reorganized
kotlinx-coroutines-debugandkotlinx-coroutines-corecode to avoid a split package between the two artifacts (#4247). Note that directly referencingkotlinx.coroutines.debug.AgentPremainmust now be replaced withkotlinx.coroutines.debug.internal.AgentPremain. Thanks, @sellmair! - No longer shade byte-buddy in
kotlinx-coroutines-debug, reducing the artifact size and simplifying the build configuration of client code. Thanks, @sellmair! - Fixed
NullPointerExceptionwhen using Java-deserializedkotlinx-coroutines-coreexceptions (#4291). Thanks, @AlexRiedler! - Properly report exceptions thrown by
CoroutineDispatcher.dispatchinstead of raising internal errors (#4091). Thanks, @zuevmaxim! - Fixed a bug that delayed scheduling of a
Dispatchers.DefaultorDispatchers.IOtask after ayield()in rare scenarios (#4248). - Fixed a bug that prevented the
main()coroutine on Wasm/WASI from executing after adelay()call in some scenarios (#4239). - Fixed scheduling of
runBlockingtasks on Kotlin/Native that arrive after therunBlockingblock was exited (#4245). - Fixed some terminal
Flowoperators sometimes resuming without taking cancellation into account (#4254). Thanks, @jxdabc! - Fixed a bug on the JVM that caused coroutine-bound
ThreadLocalvalues not to get cleaned when using non-CoroutineDispatchercontinuation interceptors (#4296). - Small tweaks, fixes, and documentation improvements.