arrow
arrow copied to clipboard
Make `Schedule` a `fun interface`
Fixes #3325 Fixes #3499
It turns out that using a value class containing a function inside is equivalent to having just a fun interface. So I've reworked Schedule in that form, which hopefully should remove the problems we have with inlining. @dave08 @postfixNotation
This change is breaking, but since in 2.0 we only promised source compatibility (and not binary compatibility), this should still be OK.
PS: This also updates Kotlin to 2.1.0-Beta2, since 2.0.21 was giving a very weird compiler error.
It seems that this breaks in Native. The error is now reported in YouTrack
Kover Report
| File | Coverage [68.59%] |
|---|---|
| arrow-libs/resilience/arrow-resilience/src/commonMain/kotlin/arrow/resilience/Schedule.kt | 68.59% |
| Total Project Coverage | 46.08% |
|---|