arrow icon indicating copy to clipboard operation
arrow copied to clipboard

Make `Schedule` a `fun interface`

Open serras opened this issue 1 year ago • 2 comments

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.

serras avatar Oct 15 '24 09:10 serras

PS: This also updates Kotlin to 2.1.0-Beta2, since 2.0.21 was giving a very weird compiler error.

serras avatar Oct 15 '24 09:10 serras

It seems that this breaks in Native. The error is now reported in YouTrack

serras avatar Oct 15 '24 10:10 serras

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%

github-actions[bot] avatar Nov 04 '24 20:11 github-actions[bot]