copyWith method

MultistreamConfig copyWith({
  1. Duration? readTimeout,
  2. int? maxRetries,
  3. bool? useProgressiveTimeout,
  4. Duration? initialTimeout,
  5. int? maxTimeoutAttempts,
  6. double? timeoutMultiplier,
  7. Duration? retryDelay,
  8. bool? enableTimeoutLogging,
})

Creates a copy of this configuration with modified values

Implementation

MultistreamConfig copyWith({
  Duration? readTimeout,
  int? maxRetries,
  bool? useProgressiveTimeout,
  Duration? initialTimeout,
  int? maxTimeoutAttempts,
  double? timeoutMultiplier,
  Duration? retryDelay,
  bool? enableTimeoutLogging,
}) {
  return MultistreamConfig(
    readTimeout: readTimeout ?? this.readTimeout,
    maxRetries: maxRetries ?? this.maxRetries,
    useProgressiveTimeout: useProgressiveTimeout ?? this.useProgressiveTimeout,
    initialTimeout: initialTimeout ?? this.initialTimeout,
    maxTimeoutAttempts: maxTimeoutAttempts ?? this.maxTimeoutAttempts,
    timeoutMultiplier: timeoutMultiplier ?? this.timeoutMultiplier,
    retryDelay: retryDelay ?? this.retryDelay,
    enableTimeoutLogging: enableTimeoutLogging ?? this.enableTimeoutLogging,
  );
}