Class: TransactionalOutbox::ExponentialBackoff

Inherits:
Object
  • Object
show all
Defined in:
lib/transactional_outbox/exponential_backoff.rb

Class Method Summary collapse

Class Method Details

.calculate_retry_delay(retry_num) ⇒ Object



5
# File 'lib/transactional_outbox/exponential_backoff.rb', line 5

def self.calculate_retry_delay(retry_num) = 2**retry_num