OnTransportError

data class OnTransportError(val maxAttempts: Int = 2, val backoff: Duration = 200.milliseconds) : RetryPolicy

Retries a failed request on transport (I/O) failures only, waiting backoff * attempt between attempts.

Constructors

Link copied to clipboard
constructor(maxAttempts: Int = 2, backoff: Duration = 200.milliseconds)

Properties

Link copied to clipboard

base delay multiplied by the attempt number before each retry. Defaults to 200 ms.

Link copied to clipboard

total number of attempts, including the first one. Defaults to 2.