RetryConfig.ofExponentialBackOffAndJitter constructor
- @Deprecated('Use default constructor instead. Will be removed in v5.0.0')
- required int maxAttempts,
- dynamic onExecute(
- RetryEvent event
Returns the new instance of RetryConfig of Exponential Back Off and Jitter.
Implementation
@Deprecated('Use default constructor instead. Will be removed in v5.0.0')
factory RetryConfig.ofExponentialBackOffAndJitter({
required int maxAttempts,
Function(RetryEvent event)? onExecute,
}) =>
RetryConfig(
maxAttempts: maxAttempts,
onExecute: onExecute,
);