kotlinx.coroutines v1.3.0-RC Release Notes

  • Flow

    • Core Flow API is promoted to stable
    • ๐Ÿ†• New basic Flow operators: withIndex, collectIndexed, distinctUntilChanged overload
    • ๐Ÿ†• New core Flow operators: onStart and onCompletion
    • ReceiveChannel.consumeAsFlow and emitAll (#1340)

    General changes

    • โšก๏ธ Kotlin updated to 1.3.41
    • โž• Added kotlinx-coroutines-bom with Maven Bill of Materials (#1110)
    • Reactive integrations are seriously improved
      • All builders now are top-level functions instead of extensions on CoroutineScope and prohibit Job instance in their context to simplify lifecycle management
      • Fatal exceptions are handled consistently (#1297)
      • Integration with Reactor Context added (#284)
    • Stacktrace recovery for suspend fun main (#1328)
    • CoroutineScope.cancel extension with message (#1338)
    • Protection against non-monotonic clocks in delay (#1312)
    • Duration.ZERO is handled properly in JDK 8 extensions (#1349)
    • Library code is adjusted to be more minification-friendly