RetryStrategy

interface RetryStrategy

A strategy for trying a block of code one or more times.

Inheritors

Types

Link copied to clipboard
interface Config

Options for configuring a retry strategy

Properties

Link copied to clipboard

The configured parameters for this strategy

Functions

Link copied to clipboard
abstract suspend fun <R> retry(policy: RetryPolicy<R>, block: suspend () -> R): Outcome<R>

Retry the given block of code until it's successful. Note this method throws exceptions for non-successful outcomes from retrying.