๐ฃ ๐ฃ ๐ฃ
kotlinx.coroutines
version 1.3.0-M1 is here!
A lot of changes in Flow:
* Core
Flow
interfaces and operators are graduated from preview status to experimental โธ๏ธ
* Serious performance improvements of Flow
* More accurate context preservation invariant that should prevent most of the concurrency and contract violation bugs
*
Flow
interface cannot be implemented directly, only via
AbstractFlow
to preserve Flowโs invariant
* Separate
buffer
operator composable with buffered operator (
flowOn
,
flowChannel
etc.). No more
bufferSize
constant in operators!
* New operators and a lot more!
General changes:
* Scalable state-of-the-art
Semaphore
implementation
* Channels API improved: performance, experimental API and consistent exception handling
*
withContext
checks cancellation status on exit to make reasoning about sequential concurrent code easier
* JS dispatcher performance
* Various API and performance improvements and bug fixes
Full changelog:
https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.3.0-M1