kotlinx.coroutines v1.3.0 Release Notes

Release Date: 2019-07-19 // 12 months ago
  • 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