|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- exports.default = function (opts, task) {
- if (!task) {
- task = opts;
- opts = null;
- }
- var _task = (0, _wrapAsync2.default)(task);
- return (0, _initialParams2.default)(function (args, callback) {
- function taskFn(cb) {
- _task.apply(null, args.concat(cb));
- }
-
- if (opts) (0, _retry2.default)(opts, taskFn, callback);else (0, _retry2.default)(taskFn, callback);
- });
- };
-
- var _retry = require('./retry');
-
- var _retry2 = _interopRequireDefault(_retry);
-
- var _initialParams = require('./internal/initialParams');
-
- var _initialParams2 = _interopRequireDefault(_initialParams);
-
- var _wrapAsync = require('./internal/wrapAsync');
-
- var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- module.exports = exports['default'];
-
-
|