setRecoveryStrategy method

void setRecoveryStrategy(
  1. ErrorRecoveryStrategy strategy
)

Set a custom recovery strategy.

Implementation

void setRecoveryStrategy(ErrorRecoveryStrategy strategy) {
  _strategy = strategy;
  logger.log('Recovery strategy changed to: ${strategy.name}');
}