X7ROOT File Manager
Current Path:
/lib/node_modules/npm/node_modules/asynckit/lib
lib
/
node_modules
/
npm
/
node_modules
/
asynckit
/
lib
/
ðŸ“
..
📄
abort.js
(497 B)
📄
async.js
(599 B)
📄
defer.js
(441 B)
📄
iterate.js
(1.75 KB)
📄
readable_asynckit.js
(1.57 KB)
📄
readable_parallel.js
(673 B)
📄
readable_serial.js
(655 B)
📄
readable_serial_ordered.js
(941 B)
📄
state.js
(941 B)
📄
streamify.js
(2.89 KB)
📄
terminator.js
(533 B)
Editing: terminator.js
var abort = require('./abort.js') , async = require('./async.js') ; // API module.exports = terminator; /** * Terminates jobs in the attached state context * * @this AsyncKitState# * @param {function} callback - final callback to invoke after termination */ function terminator(callback) { if (!Object.keys(this.jobs).length) { return; } // fast forward iteration index this.index = this.size; // abort jobs abort(this); // send back results we have so far async(callback)(null, this.results); }
Upload File
Create Folder