This release introduces the kotlin-retry-result
subproject, leveraging the Result<V, E>
type from kotlin-result
for code that must be retried but returns an Err
instead of throwing an Exception
.
See the README section for a full example.
To install the new extension library:
repositories {
mavenCentral()
}
dependencies {
implementation("com.michael-bull.kotlin-retry:kotlin-retry:2.0.1")
implementation("com.michael-bull.kotlin-retry:kotlin-retry-result:2.0.1")
}