1.0.1 • Published 4 years ago

@prismamedia/retry v1.0.1

Weekly downloads
82
License
MIT
Repository
github
Last release
4 years ago

TS Retry

About

This module aims to ease the retry of a function, using an exponential time between tries.

Getting started

Usage

import { retry } from '@prismamedia/retry';

try {
  const myResult = await retry(async () => {
    // Do my processing that may throw an Error

    return 2;
  });
} catch (err) {
  // Handle error after "n" tries
}
1.0.1

4 years ago

1.0.0

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago