From 3a5771a0cc810978190ffe158ebada21e51d0fe0 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 26 Nov 2021 23:07:00 +0600 Subject: [PATCH] Update RepeatOnFailure.kt --- .../kotlin/dev/inmo/micro_utils/common/RepeatOnFailure.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {