Skip to content

Commit

Permalink
inline List extension executor
Browse files Browse the repository at this point in the history
  • Loading branch information
himadieievsv committed Jan 17, 2024
1 parent b1dd38c commit ea6bddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {

allprojects {
group = "com.himadieiev"
version = "1.1.4"
version = "1.1.5"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ suspend inline fun <T : Backend, R> multiInstanceExecuteWithRetry(
}
}

suspend fun <T : Backend, R> List<T>.executeWithRetry(
suspend inline fun <T : Backend, R> List<T>.executeWithRetry(
scope: CoroutineScope,
timeout: Duration,
defaultDrift: Duration = Duration.ofMillis(3),
retryCount: Int = 3,
retryDelay: Duration = Duration.ofMillis(100),
cleanUp: (backend: T) -> Unit = { _ -> },
waitStrategy: WaitStrategy = WaitStrategy.ALL,
callee: suspend (backend: T) -> R,
crossinline cleanUp: (backend: T) -> Unit = { _ -> },
crossinline callee: suspend (backend: T) -> R,
): List<R> {
return multiInstanceExecuteWithRetry(
backends = this,
Expand Down

0 comments on commit ea6bddf

Please sign in to comment.