• Home
  • Raw
  • Download

Lines Matching refs:retry

1 # node-promise-retry
5 [npm-url]:https://npmjs.org/package/promise-retry
6 [downloads-image]:http://img.shields.io/npm/dm/promise-retry.svg
7 [npm-image]:http://img.shields.io/npm/v/promise-retry.svg
8 [travis-url]:https://travis-ci.org/IndigoUnited/node-promise-retry
9 [travis-image]:http://img.shields.io/travis/IndigoUnited/node-promise-retry/master.svg
10 [david-dm-url]:https://david-dm.org/IndigoUnited/node-promise-retry
11 [david-dm-image]:https://img.shields.io/david/IndigoUnited/node-promise-retry.svg
12 [david-dm-dev-url]:https://david-dm.org/IndigoUnited/node-promise-retry#info=devDependencies
13 [david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/node-promise-retry.svg
15 … that returns a promise, leveraging the power of the [retry](https://github.com/tim-kos/node-retry
17 There's already some modules that are able to retry functions that return promises but
23 `$ npm install promise-retry`
31 a `retry` error.
32 The `options` argument is an object which maps to the [retry](https://github.com/tim-kos/node-retry
34 - `retries`: The maximum amount of times to retry the operation. Default is `10`.
36 - `minTimeout`: The number of milliseconds before starting the first retry. Default is `1000`.
41 …n will receive a `retry` function as its first argument that should be called with an error whenev…
42 If there's retries left, it will throw a special `retry` error that will be handled internally to c…
49 var promiseRetry = require('promise-retry');
52 promiseRetry(function (retry, number) {
56 .catch(retry);
65 promiseRetry(function (retry, number) {
71 retry(err);