Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 3.128.29.244
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
node_modules /
npm /
node_modules /
asynckit /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
abort.js
497
B
-rw-r--r--
2021-03-10 14:36
async.js
599
B
-rw-r--r--
2021-03-10 14:36
defer.js
441
B
-rw-r--r--
2021-03-10 14:36
iterate.js
1.75
KB
-rw-r--r--
2021-03-10 14:36
readable_asynckit.js
1.57
KB
-rw-r--r--
2021-03-10 14:36
readable_parallel.js
673
B
-rw-r--r--
2021-03-10 14:36
readable_serial.js
655
B
-rw-r--r--
2021-03-10 14:36
readable_serial_ordered.js
941
B
-rw-r--r--
2021-03-10 14:36
state.js
941
B
-rw-r--r--
2021-03-10 14:36
streamify.js
2.89
KB
-rw-r--r--
2021-03-10 14:36
terminator.js
533
B
-rw-r--r--
2021-03-10 14:36
Save
Rename
var async = require('./async.js') , abort = require('./abort.js') ; // API module.exports = iterate; /** * Iterates over each job object * * @param {array|object} list - array or object (named list) to iterate over * @param {function} iterator - iterator to run * @param {object} state - current job status * @param {function} callback - invoked when all elements processed */ function iterate(list, iterator, state, callback) { // store current index var key = state['keyedList'] ? state['keyedList'][state.index] : state.index; state.jobs[key] = runJob(iterator, key, list[key], function(error, output) { // don't repeat yourself // skip secondary callbacks if (!(key in state.jobs)) { return; } // clean up jobs delete state.jobs[key]; if (error) { // don't process rest of the results // stop still active jobs // and reset the list abort(state); } else { state.results[key] = output; } // return salvaged results callback(error, state.results); }); } /** * Runs iterator over provided job element * * @param {function} iterator - iterator to invoke * @param {string|number} key - key/index of the element in the list of jobs * @param {mixed} item - job description * @param {function} callback - invoked after iterator is done with the job * @returns {function|mixed} - job abort function or something else */ function runJob(iterator, key, item, callback) { var aborter; // allow shortcut if iterator expects only two arguments if (iterator.length == 2) { aborter = iterator(item, async(callback)); } // otherwise go with full three arguments else { aborter = iterator(item, key, async(callback)); } return aborter; }