1.0.7 • Published 7 years ago

retry-promise-typescript v1.0.7

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

Retry Promise for TypeScript

About

I couldn't find a simple implementation of a retrying Promise library for TypeScript, so here you go.

Usage

yarn add retry-promise-typescript
import {RetryPromise} from 'retry-promise-typescript';
import * as got from 'got';

new RetryPromise({retries: 10, log: true}).retry(got('https://www.google.com/')).then((result) => {
	console.log(result);
}, (error) => {
	console.log(error);
});

Donate BTC: 18zrUSJzvtxDmaGaThAZuR1GPMe2jwjmxW

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago