1.0.3 • Published 3 years ago

retry-with-logger v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

retry-with-logger

npm i retry-with-logger

See example/index.js to see a bit more useful usage.

Quick Start (Basic Usage)

import { retry } from 'retry-with-logger';

try {
  const result = await retry(() => {
    throw new Error('boo');
  });
} catch (error) {
  console.log('final error:', error);
}

This will try running the function once, then if it fails it will retry default of 5 times.

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago