Skip to content

Commit

Permalink
PI-1478 changes to retry exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
stevomcallister committed Sep 21, 2023
1 parent aebb305 commit 97b4765
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import kotlin.reflect.KClass

fun <T> retry(
maxRetries: Int,
delay: Duration = Duration.ofMillis(100),
exceptions: List<KClass<out Exception>> = listOf(Exception::class),
delay: Duration = Duration.ofMillis(100),
code: () -> T
): T {
var throwable: Throwable?
Expand Down

0 comments on commit 97b4765

Please sign in to comment.