Kingfisher Documentation

Enumeration Delay​Retry​Strategy.​Interval

public enum Interval  

Represents the interval mechanism which used in a DelayRetryStrategy.

Member Of

DelayRetryStrategy

A retry strategy that guides Kingfisher to retry when a .responseError happens, with a specified max retry count and a certain interval mechanism.

Enumeration Cases

seconds

case seconds(TimeInterval) 

The next retry attempt should happen in fixed seconds. For example, if the associated value is 3, the attempts happens after 3 seconds after the previous decision is made.

accumulated

case accumulated(TimeInterval) 

The next retry attempt should happen in an accumulated duration. For example, if the associated value is 3, the attempts happens with interval of 3, 6, 9, 12, ... seconds.

custom

case custom(block: (_ retriedCount: Int) -> TimeInterval) 

Uses a block to determine the next interval. The current retry count is given as a parameter.