Required Instance Methodsoto-core 7.4.0SotoCore
getRetryWaitTime(error:attempt:)
Returns whether we should retry and how long we should wait before retrying
func getRetryWaitTime(error: Error, attempt: Int) -> RetryStatus?
Returns whether we should retry and how long we should wait before retrying
func getRetryWaitTime(error: Error, attempt: Int) -> RetryStatus?
s8SotoCore11RetryPolicyP03getC8WaitTime5error7attemptAA0C6StatusOSgs5Error_p_SitF
What are these?6N2GX
import SotoCore
protocol RetryPolicy : Sendable
Protocol for Retry strategy. Has function returning amount of time before the next retry after an HTTP error
protocol Error : Sendable
A type representing an error value that can be thrown.
@frozen struct Int
A signed integer value type.
enum RetryStatus
Return value for RetryPolicy.getRetryWaitTime
. Either retry after time amount or don’t retry