Backoff
The retry and backoff delay settings for a command.
struct Backoff
Creating retry values
init(maxRetries: Int, strategy: Strategy
) Creates a new backup setting with the values you provide.
init(from: any Decoder
) throws static var `default`: Backoff
Default backoff settings
enum Strategy
The backoff strategy and values for delaying.
Inspecting retry values
let maxRetries: Int
The maximum number of retries to attempt on failure.
let strategy: Strategy
The delay strategy for waiting between retries.