Current Path: > > lib > node_modules > npm > node_modules > asynckit > > lib
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
abort.js | File | 497 bytes | March 10 2021 14:36:40. | |
async.js | File | 599 bytes | March 10 2021 14:36:40. | |
defer.js | File | 441 bytes | March 10 2021 14:36:40. | |
iterate.js | File | 1794 bytes | March 10 2021 14:36:40. | |
readable_asynckit.js | File | 1611 bytes | March 10 2021 14:36:40. | |
readable_parallel.js | File | 673 bytes | March 10 2021 14:36:40. | |
readable_serial.js | File | 655 bytes | March 10 2021 14:36:40. | |
readable_serial_ordered.js | File | 941 bytes | March 10 2021 14:36:40. | |
state.js | File | 941 bytes | March 10 2021 14:36:40. | |
streamify.js | File | 2964 bytes | March 10 2021 14:36:40. | |
terminator.js | File | 533 bytes | March 10 2021 14:36:40. |
var streamify = require('./streamify.js') , defer = require('./defer.js') ; // API module.exports = ReadableAsyncKit; /** * Base constructor for all streams * used to hold properties/methods */ function ReadableAsyncKit() { ReadableAsyncKit.super_.apply(this, arguments); // list of active jobs this.jobs = {}; // add stream methods this.destroy = destroy; this._start = _start; this._read = _read; } /** * Destroys readable stream, * by aborting outstanding jobs * * @returns {void} */ function destroy() { if (this.destroyed) { return; } this.destroyed = true; if (typeof this.terminator == 'function') { this.terminator(); } } /** * Starts provided jobs in async manner * * @private */ function _start() { // first argument – runner function var runner = arguments[0] // take away first argument , args = Array.prototype.slice.call(arguments, 1) // second argument - input data , input = args[0] // last argument - result callback , endCb = streamify.callback.call(this, args[args.length - 1]) ; args[args.length - 1] = endCb; // third argument - iterator args[1] = streamify.iterator.call(this, args[1]); // allow time for proper setup defer(function() { if (!this.destroyed) { this.terminator = runner.apply(null, args); } else { endCb(null, Array.isArray(input) ? [] : {}); } }.bind(this)); } /** * Implement _read to comply with Readable streams * Doesn't really make sense for flowing object mode * * @private */ function _read() { }
SILENT KILLER Tool