TransactionRetry constructor

const TransactionRetry({
  1. int maxAttempts = 3,
  2. Duration timeout = const Duration(seconds: 30),
  3. Duration delay = const Duration(milliseconds: 10),
  4. Duration maxDelay = const Duration(milliseconds: 250),
})

Enables bounded retries only for callbacks safe to repeat after rollback.

Implementation

const TransactionRetry({
  this.maxAttempts = 3,
  this.timeout = const Duration(seconds: 30),
  this.delay = const Duration(milliseconds: 10),
  this.maxDelay = const Duration(milliseconds: 250),
});