1.0.2 • Published 3 months ago

exponential-backoff-retry v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
3 months ago

Exponential Backoff Retry

It is simple exponential backoff retry algorithm implementation.

Getting Started

  1. Execute function 'functionToExecuteInBackoffRetry' with exponential retry.
import { exponentialBackoffRetry } from 'exponential-backoff-retry';

exponentialBackoffRetry(async () => functionToExecuteInBackoffRetry())
.then(result => {})
.catch(error => {});
  1. Execute function 'functionToExecuteInBackoffRetry' with exponential retry with max attempt as 100.
import { exponentialBackoffRetry, ExponentialBackoffRetryConfig } from 'exponential-backoff-retry';

exponentialBackoffRetry(async () => functionToExecuteInBackoffRetry(), new ExponentialBackoffRetryConfig(100))
.then(result => {})
.catch(error => {});
1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

4 years ago