Initializerheckj.formic 0.3.0Formic
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct Backoff
The retry and backoff delay settings for a command.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(maxRetries: Int, strategy: Strategy)
Creates a new backup setting with the values you provide.
static var `default`: Backoff { get }
Default backoff settings
enum Strategy
The backoff strategy and values for delaying.
static var never: Backoff { get }
Never attempt retry
let maxRetries: Int
The maximum number of retries to attempt on failure.
var retryOnFailure: Bool { get }
let strategy: Strategy
The delay strategy for waiting between retries.