HedgingInterceptor constructor

HedgingInterceptor({
  1. Duration delay = const Duration(milliseconds: 300),
  2. int maxAttempts = 2,
})

Implementation

HedgingInterceptor(
    {this.delay = const Duration(milliseconds: 300), this.maxAttempts = 2}) {
  if (delay < Duration.zero || maxAttempts < 1 || maxAttempts > 8) {
    throw ArgumentError('Invalid hedging budget.');
  }
}