https://github.com/reklatsmasters/run-success
Runs the task until it doesn't come to the end successfully
https://github.com/reklatsmasters/run-success
Last synced: 4 months ago
JSON representation
Runs the task until it doesn't come to the end successfully
- Host: GitHub
- URL: https://github.com/reklatsmasters/run-success
- Owner: reklatsmasters
- License: mit
- Created: 2014-12-28T18:59:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-20T11:25:00.000Z (over 10 years ago)
- Last Synced: 2025-03-15T19:38:49.177Z (4 months ago)
- Language: JavaScript
- Size: 246 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
run-success
===========
[](https://travis-ci.org/ReklatsMasters/run-success)
[](https://npmjs.org/package/run-success)
[](https://npmjs.org/package/run-success)
[](https://npmjs.org/package/run-success)
[](https://codeclimate.com/github/ReklatsMasters/run-success)
[](https://codeclimate.com/github/ReklatsMasters/run-success)Runs the task until it doesn't come to the end successfully
##usage
```js
var success = require('run-success');
var request = require('request');var task = function(cb) {
request('http://example.com', function(err, response){
if (err) {
return cb(err);
}cb(null, response);
});
}success(task, {count:10}, function(err, resp){
if (err) {
// epic fail
}// do some
});
```