RetryInterceptor constructor
RetryInterceptor({
- RetryOptions? options,
- double random()?,
- DateTime clock()?,
- Future<
void> delay()?,
Implementation
RetryInterceptor(
{RetryOptions? options,
double Function()? random,
DateTime Function()? clock,
Future<void> Function(Duration, CancellationToken)? delay})
: options = options ?? RetryOptions(),
_random = random ?? Random().nextDouble,
_clock = clock ?? DateTime.now,
_delay = delay ?? ((duration, token) => token.wait(duration));