Retry

interface Retry

A strategy for retrying after after a failed action.

Properties

Link copied to clipboard
abstract val hasNext: Boolean

Whether this strategy has any more retries left.

Functions

Link copied to clipboard
abstract fun reset()

Resets the underlying retry counter if this Retry uses an maximum for consecutive retry invocations. This should be called after a successful retry.

Link copied to clipboard
abstract suspend fun retry()

Suspends for a certain amount of time.