RetryCtxDelayProvider

Defines the delay strategy for retrying an operation with the ability to use a custom delay provider with optional state.

See CtxDelayProvider for more information.

See also

Functions

Link copied to clipboard
abstract suspend fun delay(attempt: Int, context: RetryDelayStrategyContext): Duration

Determines the delay between retries. If the return value is Duration.ZERO, the delay is considered to be defined externally and the default delay provider is skipped.