public class RetryContext
Represents a retry context which could be used to determine the current retry status.
public var retriedCount: Int
The retried count before current retry happens. This value is
0 if the current retry is for the first time.
public internal(set) var userInfo: Any? = nil
A user set value for passing any other information during the retry. If you choose to use
as the retry decision for
RetryStrategy.retry(context:retryHandler:), the associated value of
RetryDecision.retry will be delivered to you in the next retry.