markResolved method

void markResolved(
  1. LocusErrorType errorType
)

Marks an error as resolved (e.g., after successful retry).

Implementation

void markResolved(LocusErrorType errorType) {
  final attempts = _retryCounts[errorType] ?? 1;
  _config.onResolved?.call(
    LocusError(type: errorType, message: 'Resolved after retry'),
    attempts,
  );
  _retryCounts.remove(errorType);
  _firstOccurrences.remove(errorType);
  _retryTimers[errorType]?.cancel();
  _retryTimers.remove(errorType);
}