diff --git a/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/RepeatOnFailure.kt b/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/RepeatOnFailure.kt index 6a396499fc7..409df8d2e98 100644 --- a/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/RepeatOnFailure.kt +++ b/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/RepeatOnFailure.kt @@ -7,8 +7,8 @@ package dev.inmo.micro_utils.common */ inline fun repeatOnFailure( times: Int, - crossinline onEachFailure: (Throwable) -> Unit = {}, - crossinline action: (Int) -> R + onEachFailure: (Throwable) -> Unit = {}, + action: (Int) -> R ): Optional { repeat(times) { runCatching {