AnyRetrierFactory
public struct AnyRetrierFactory : RetrierFactory
This entity may be used to provide retriers independent of the request that has been scheduled. In most cases, this will be the only retrier factory that you are using.
-
Creates a new retrier factory by passing a closure that is simply executed when a new retrier is requested.
Declaration
Swift
public init(_ create: @escaping () -> Retrier)
Parameters
create
The method used to create new retriers. Note that this closure must provide a new retrier per call.