arrow-kt / arrow

Λrrow - Functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
6.18k stars 451 forks source link

Move `autoClose` for `Resource` to `common` #3483

Closed serras closed 1 month ago

serras commented 2 months ago

AutoCloseable is now in Kotlin standard library, so we can move autoClose to commonMain, instead of relegating it to JVM. This breaks binary compatibility, but not source compatibility, so this is OK in the 2.0 window.

github-actions[bot] commented 2 months ago

Kover Report

File Coverage [65.17%]
arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt 69.41%
arrow-libs/fx/arrow-fx-coroutines/src/jsMain/kotlin/arrow/fx/coroutines/ResourceExtensions.kt 62.07%
arrow-libs/fx/arrow-fx-coroutines/src/jvmMain/kotlin/arrow/fx/coroutines/ResourceExtensions.kt 62.07%
arrow-libs/fx/arrow-fx-coroutines/src/nativeMain/kotlin/arrow/fx/coroutines/ResourceExtensions.kt 62.07%
arrow-libs/fx/arrow-fx-coroutines/src/wasmJsMain/kotlin/arrow/fx/coroutines/ResourceExtensions.kt 62.07%
Total Project Coverage 60.38%