Module retry_logic

Module retry_logic 

Source
Expand description

Retry Logic for IndexedDB Operations with Exponential Backoff

Provides enterprise-grade retry functionality for transient IndexedDB failures.

§Features

  • Exponential backoff (100ms, 200ms, 400ms)
  • Max 3 retry attempts
  • Quota exceeded errors are NOT retried (permanent failures)
  • Transient errors are retried (transaction failures, network issues)
  • Comprehensive logging for debugging

Functions§

is_retriable_error
Determine if an error is retriable
with_retry
Execute an async operation with retry logic and exponential backoff