Package-level declarations

Types

Link copied to clipboard
typealias RetryBlock<T> = suspend (Int) -> T

Represents a block to be retried, taking an integer parameter (the retry count) and returning a value of type T.

Link copied to clipboard
open class RetryPolicy(retryPredicate: RetryPredicate = onException, delayStrategy: DelayStrategy = noDelay)

Represents a retry policy that combines a RetryPredicate and a DelayStrategy.

Functions

Link copied to clipboard

Combines a DelayStrategy with a RetryPredicate to create a RetryPolicy.

Combines a RetryPredicate with a DelayStrategy to create a RetryPolicy.